CN106991658A - The method and device of image procossing - Google Patents

The method and device of image procossing Download PDF

Info

Publication number
CN106991658A
CN106991658A CN201710192953.6A CN201710192953A CN106991658A CN 106991658 A CN106991658 A CN 106991658A CN 201710192953 A CN201710192953 A CN 201710192953A CN 106991658 A CN106991658 A CN 106991658A
Authority
CN
China
Prior art keywords
image
described image
pixel
processing
central point
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
CN201710192953.6A
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710192953.6A priority Critical patent/CN106991658A/en
Publication of CN106991658A publication Critical patent/CN106991658A/en
Pending legal-status Critical Current

Links

Classifications

    • G06T5/80
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Studio Devices (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The disclosure is directed to a kind of method and device of image procossing, the distortion occurred in picture is handled for realizing, picture quality and display effect is improved.Methods described includes:Obtain the image that photographing device is photographed;Judge whether to need to enter described image line distortion to handle;When it is determined that needing to enter described image line distortion processing, for each pixel in described image, the pixel is handled to the distance of the central point of described image according to the wide and height of image, and the pixel.

Description

The method and device of image procossing
Technical field
This disclosure relates to communicate and computer disposal field, more particularly to image procossing method and device.
Background technology
With the development of electronic technology, the equipment such as mobile terminal, digital camera is commonly used.People are to photographic quality It is required that the photographing device such as more and more higher, mobile terminal and digital camera is in order to meet the demand of user, wide-angle lens can be installed first-class Shoot the higher camera lens of performance.But, the picture that wide-angle lens is photographed has distortion in edge, influences picture quality.This is One urgent problem to be solved.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of method and device of image procossing.
According to the first aspect of the embodiment of the present disclosure there is provided a kind of method of image procossing, including:
Obtain the image that photographing device is photographed;
Judge whether to need to enter described image line distortion to handle;
When it is determined that needing to enter described image line distortion processing, for each pixel in described image, according to figure The wide and height of picture, and the pixel are handled the pixel to the distance of the central point of described image.
The technical scheme provided by this disclosed embodiment can include the following benefits:The present embodiment can identify figure Seem it is no be distorted, enter line distortion processing to image when image is distorted, improve picture quality and display effect.
In one embodiment, it is described to judge whether to need to enter described image line distortion to handle, at least including following step It is one of rapid:
According to the facility information of the photographing device, judge whether the photographing device includes wide-angle lens, clapped described When including wide-angle lens according to equipment, it is determined that needing to enter described image line distortion processing;
Whether include the textural characteristics of multiple arcs, at described image edge if judging the textural characteristics of described image edge When the textural characteristics at place include the textural characteristics of multiple arcs, it is determined that needing to enter described image line distortion processing.
The technical scheme provided by this disclosed embodiment can include the following benefits:The present embodiment passes through photographing device Type or image texture characteristic judge whether image is distorted there is provided a variety of judgment modes, judged result can be improved Accuracy.
In one embodiment, before handling the pixel, methods described also includes:
Hard decoder is carried out to described image, RGB RGB texture images are obtained;
Or
Soft decoding is carried out to described image, bright chroma YUV image is obtained;
The YUV image is converted into RGB texture images.
The technical scheme provided by this disclosed embodiment can include the following benefits:The present embodiment is converted the image into RGB texture images, are convenient for distortion processing, are favorably improved the picture quality after distortion processing.
In one embodiment, the wide and height according to image, and the pixel is to the central point of described image Distance, the pixel is handled, including:
According to the wide and height of image, and the pixel is to the distance of the central point of described image, and arc distortion Textural characteristics, the pixel is handled.
The technical scheme provided by this disclosed embodiment can include the following benefits:The present embodiment is directed to distortion feature Effectively handled, improve the effect of distortion processing.
In one embodiment, the wide and height according to image, and the pixel is to the central point of described image Distance, and arc distortion textural characteristics, the pixel is handled, including:
The pixel is handled according to below equation:
X1=xa;
Y1=ya;
A=arctang (r1)/r1;
R1=r/s;
Wherein, using the central point of described image as the origin of two-dimensional Cartesian coordinate system, (x, y) is pixel described in before processing Coordinate, (x1, y1) for processing after the pixel coordinate, a for distortion processing coefficient, r be pixel described in before processing (x, Y) to described image central point distance, r1 for processing after the pixel (x1, y1) to described image central point away from From the distance that, R arrives the central point of described image for the summit of described image, w is the width of described image, h for described image height, S is default effect parameter.
The technical scheme provided by this disclosed embodiment can include the following benefits:Present embodiments provide a kind of abnormal Become the implementation of processing.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of device of image procossing, including:
Acquisition module, for obtaining the image that photographing device is photographed;
Judge module, for judging whether to need to enter described image line distortion to handle;
Processing module, for when it is determined that needing to enter described image line distortion processing, for each in described image Pixel, is clicked through according to the wide and height of image, and the pixel to the distance of the central point of described image to the pixel Row processing.
In one embodiment, the judge module at least includes one of following submodule:
First judging submodule, for the facility information according to the photographing device, judges whether the photographing device wraps Containing wide-angle lens, when the photographing device includes wide-angle lens, it is determined that needing to enter described image line distortion processing;
Second judging submodule, for judging whether the textural characteristics of described image edge include the texture of multiple arcs Feature, when the textural characteristics of described image edge include the textural characteristics of multiple arcs, it is determined that needing to enter described image Line distortion is handled.
In one embodiment, described device also includes:
Hard decoder module, for carrying out hard decoder to described image, obtains RGB RGB texture images;
Or
Soft decoder module, for carrying out soft decoding to described image, obtains bright chroma YUV image;
Modular converter, for the YUV image to be converted into RGB texture images.
In one embodiment, the processing module includes:
Handle submodule, for the wide and height according to image, and the pixel to the central point of described image away from From, and arc distortion textural characteristics, the pixel is handled.
In one embodiment, the processing submodule is handled the pixel according to below equation:
X1=xa;
Y1=ya;
A=arctang (r1)/r1;
R1=r/s;
Wherein, using the central point of described image as the origin of two-dimensional Cartesian coordinate system, (x, y) is pixel described in before processing Coordinate, (x1, y1) for processing after the pixel coordinate, a for distortion processing coefficient, r be pixel described in before processing (x, Y) to described image central point distance, r1 for processing after the pixel (x1, y1) to described image central point away from From the distance that, R arrives the central point of described image for the summit of described image, w is the width of described image, h for described image height, S is default effect parameter.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of device of image procossing, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the image that photographing device is photographed;
Judge whether to need to enter described image line distortion to handle;
When it is determined that needing to enter described image line distortion processing, for each pixel in described image, according to figure The wide and height of picture, and the pixel are handled the pixel to the distance of the central point of described image.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of the method for image procossing according to an exemplary embodiment.
Fig. 2 is a kind of schematic diagram of image according to an exemplary embodiment.
Fig. 3 is a kind of schematic diagram of image according to an exemplary embodiment.
Fig. 4 is a kind of schematic diagram of image according to an exemplary embodiment.
Fig. 5 is a kind of flow chart of the method for image procossing according to an exemplary embodiment.
Fig. 6 is a kind of flow chart of the method for image procossing according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the device of image procossing according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of judge module according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of the device of image procossing according to an exemplary embodiment.
Figure 10 is a kind of block diagram of the device of image procossing according to an exemplary embodiment.
Figure 11 is a kind of block diagram of processing module according to an exemplary embodiment.
Figure 12 is a kind of block diagram of device according to an exemplary embodiment.
Figure 13 is a kind of block diagram of device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
In correlation technique, some are shot the image come and can be distorted, and majority is because taking lens is circular, and is schemed It seem rectangle.Distortion can cause image fault, influence picture quality.
To solve the above problems, the present embodiment can recognize that whether image is distorted, image is carried out when being distorted Distortion is handled, to improve picture quality and display effect.
Fig. 1 is a kind of flow chart of the method for image procossing according to an exemplary embodiment, as shown in figure 1, should Method can be realized by image processing equipments such as mobile terminals, be comprised the following steps:
In a step 101, the image that photographing device is photographed is obtained.
In a step 102, judge whether to need to enter described image line distortion to handle.
In step 103, when it is determined that needing to enter described image line distortion processing, for each picture in described image Vegetarian refreshments, is carried out according to the wide and height of image, and the pixel to the distance of the central point of described image to the pixel Processing.
When it is determined that line distortion processing need not be entered to described image, it can be handled without distortion, terminate this flow.
By taking mobile terminal as an example, when user, which opens taking pictures in mobile terminal, to apply, taking pictures to apply enters exposal model. Now, camera lens starts to find a view, and is shot, by the image collected storage into caching.Shot equivalent to photographing device is obtained The image arrived.Mobile terminal can determine whether to need to enter described image line distortion to handle, it is determined that needing to enter described image When line distortion is handled, described image is handled.Image after processing is shown on a display screen.It is shown on display screen The higher image of quality, improves Consumer's Experience.
Or, user passes through the image on the application-browsing network such as browser on mobile terminals.Mobile terminal is from network Upper download image, and store into local cache, the image photographed equivalent to acquisition photographing device.Mobile terminal can determine whether It is no to need to enter described image line distortion processing, when it is determined that needing to enter described image line distortion processing, described image is entered Row processing.Image after processing is shown on a display screen.
Or, user opens image by repairing figure software, the image photographed equivalent to acquisition photographing device.User clicks on The distortion Treatment Options in figure software are repaiied, need to enter described image line distortion processing equivalent to determination.Mobile terminal is to described Image is handled.Image after processing is shown to user again.
Or, intelligent camera photographs image, accesses internet by the wireless continuation mode such as WiFi, passes through internet Image is uploaded onto the server.Device identification and IP (Internet protocol) address of intelligent camera are uploaded while uploading image Deng.User signs in server, and download from a server figure by the application on intelligent camera on mobile terminal Picture, the image photographed equivalent to acquisition photographing device.And carry out subsequent treatment.
The characteristics of the present embodiment occurs according to distortion, range image central point is more remote, distorts more serious.Therefore, this implementation Example is directed to each pixel in described image, according to the wide and height of image, and the pixel is to the center of described image The distance of point, is handled the pixel.Treatment effect preferably, can effectively improve picture quality and display effect.
Mobile terminal can carry out whether image is sent out by graphics processor (Graphics Processing Unit, GPU) The judgement and distortion processing of raw distortion, to alleviate the processing pressure of CPU (central processing unit).
In one embodiment, step 102 one of at least comprises the following steps:Step A1 and step A2.
In step A1, according to the facility information of the photographing device, judge whether the photographing device includes wide-angle lens Head, when the photographing device includes wide-angle lens, it is determined that needing to enter described image line distortion processing.
The focus circle of wide-angle lens is larger, and the image photographed is easier to be distorted.Therefore the present embodiment can be according to setting Standby type judges whether to need to handle into line distortion.
If processing equipment itself is provided with photographing device, understand whether the photographing device of itself is wide-angle lens.Or Person, processing equipment is when obtaining image, it is desirable to which the opposite equip. for providing image provides the facility information of photographing device.Wherein, in advance First it is configured with the configuration file of the whether corresponding wide-angle lens of various facility informations.
Whether in step A2, judging the textural characteristics of described image edge includes the textural characteristics of multiple arcs, When the textural characteristics of described image edge include the textural characteristics of multiple arcs, it is determined that needing to enter at line distortion described image Reason.
If image is distorted, majority is that the rectilinear strip in image becomes arcuate line, or curved line by a small margin Bar becomes significantly arcuate line.For it is such the characteristics of, the present embodiment can be judged by the textural characteristics of arc be It is no to be distorted.Wherein it is possible to carry out model beforehand through the textural characteristics of substantial amounts of normal picture and the image being distorted Training (as using deep learning algorithm), whether the textural characteristics for judging described image edge by the model trained include The textural characteristics of multiple arcs.Or, the textural characteristics storehouse of a large amount of fault images is previously provided with, by by the texture of described image Feature is matched with the textural characteristics in textural characteristics storehouse, judges whether the textural characteristics of described image edge include with this The textural characteristics of multiple arcs.
In one embodiment, before handling the pixel, methods described also includes:Step B1, or step B2 and step B3.
In step bl is determined., hard decoder is carried out to described image, obtains RGB (RGB) texture image.
The image of the present embodiment can with H.264 or similar agreement coded format image.If the hardware of processing equipment Hard decoder is supported, then can obtain RGB texture images by the way of hard decoder.It is easy to subsequently enter line distortion processing.
In step B2, soft decoding is carried out to described image, bright chroma (YUV) image is obtained.
In step B3, the YUV image is converted into RGB texture images.
The image of the present embodiment can with H.264 or similar agreement coded format image.If the hardware of processing equipment Hard decoder is not supported, then can such as be carried out by the way of soft decoding using a kind of FFMPEG (image processing techniques) technology soft Decoding, obtains YUV image, then the YUV image is converted into RGB texture images.It is easy to subsequently enter line distortion processing.
If processing equipment had not only supported hard decoder but also support soft decoding, hard decoder mode can be selected to be handled, located Manage efficiency higher.
In one embodiment, step 103 includes:Step C1.
In step C1, according to the wide and height of image, and the pixel is to the distance of the central point of described image, with And the textural characteristics of arc distortion, the pixel is handled.
The present embodiment combines the feature of distortion and arc feature, can effectively enter line distortion processing, improve picture quality.
In one embodiment, step C1 includes:Step C11.
In step C11, the pixel is handled according to below equation:
X1=xa;
Y1=ya;
A=arctang (r1)/r1;
R1=r/s;
Wherein, using the central point of described image as the origin of two-dimensional Cartesian coordinate system, (x, y) is pixel described in before processing Coordinate, (x1, y1) for processing after the pixel coordinate, a for distortion processing coefficient, r be pixel described in before processing (x, Y) to described image central point distance, r1 for processing after the pixel (x1, y1) to described image central point away from From the distance that, R arrives the central point of described image for the summit of described image, w is the width of described image, h for described image height, S is default effect parameter.
As shown in Fig. 2 O is the origin of two-dimensional Cartesian coordinate system, it is also the central point of image.M is any one in image Pixel, the pixel of before processing.M1 is that pixel M changes obtained pixel after treatment.N is the summit of image.Its In, s empirically or experimentally result can be set, for example, s span is [1.0,1.5], such as s=1.1.
The characteristics of for distortion, closer to image border, distortion degree is bigger.Therefore, by the above formula, more lean on The edge of nearly image, distortion degree for the treatment of is bigger, and treatment effect is preferable.
As shown in Figure 3 and Figure 4, Fig. 3 be cup profile in the image being distorted, Fig. 3 be evident that there occurs it is abnormal Become, become arc.Handled by distortion, the profile for obtaining cup in Fig. 4, Fig. 4 levels off to straight line substantially, distortion processing effect Fruit is preferably.
Implementation process is discussed in detail below by several embodiments.
Fig. 5 is a kind of flow chart of the method for image procossing according to an exemplary embodiment, as shown in figure 5, should Method can be realized by image processing equipments such as mobile terminals, be comprised the following steps:
In step 501, the image that photographing device is photographed is obtained.
In step 502, according to the facility information of the photographing device, judge whether the photographing device includes wide-angle lens Head, when the photographing device includes wide-angle lens, it is determined that needing to enter described image line distortion processing.Continue step 503. When the photographing device does not include wide-angle lens, it is determined that line distortion processing need not be entered to described image.Terminate this flow.
In step 503, hard decoder is carried out to described image, obtains RGB (RGB) texture image.
In step 504, for each pixel in described image, according to the wide and height of image, and the pixel Point to described image central point distance, and arc distortion textural characteristics, the pixel is handled.
Fig. 6 is a kind of flow chart of the method for image procossing according to an exemplary embodiment, as shown in fig. 6, should Method can be realized by image processing equipments such as mobile terminals, be comprised the following steps:
In step 601, the image that photographing device is photographed is obtained.
In step 602, whether judge the textural characteristics of described image edge includes the textural characteristics of multiple arcs, When the textural characteristics of described image edge include the textural characteristics of multiple arcs, it is determined that needing to enter at line distortion described image Reason.Continue step 603.When the textural characteristics of described image edge do not include the textural characteristics of multiple arcs, it is determined that being not required to To enter line distortion processing to described image.Terminate this flow.
In step 603, soft decoding is carried out to described image, obtains bright chroma (YUV) image.
In step 604, the YUV image is converted into RGB texture images.
In step 605, for each pixel in described image, according to the wide and height of image, and the pixel Point to described image central point distance, and arc distortion textural characteristics, the pixel is handled.
Above-described embodiment can carry out various combinations according to actual needs.
By the implementation process described above for having understood image procossing, the process is realized by mobile terminal or computer, under Face is introduced for the internal structure and function of equipment.
Fig. 7 is a kind of schematic device of image procossing according to an exemplary embodiment.Reference picture 7, the device Including:Acquisition module 701, judge module 702 and processing module 703.
Acquisition module 701, for obtaining the image that photographing device is photographed.
Judge module 702, for judging whether to need to enter described image line distortion to handle.
Processing module 703, for when it is determined that needing to enter described image line distortion processing, for every in described image Individual pixel, according to the wide and height of image, and the pixel is to the distance of the central point of described image, to the pixel Handled.
In one embodiment, as shown in figure 8, the judge module 702 at least includes one of following submodule:First sentences The disconnected judging submodule 802 of submodule 801 and second.
Whether first judging submodule 801, for the facility information according to the photographing device, judge the photographing device Comprising wide-angle lens, when the photographing device includes wide-angle lens, it is determined that needing to enter described image line distortion processing.
Second judging submodule 802, for judging whether the textural characteristics of described image edge include multiple arcs Textural characteristics, when the textural characteristics of described image edge include the textural characteristics of multiple arcs, it is determined that needing to the figure As entering line distortion processing.
In one embodiment, as shown in Figure 9 and Figure 10, described device also includes:Hard decoder module 901, or soft decoding Module 1001 and modular converter 1002.
Hard decoder module 901, for carrying out hard decoder to described image, obtains RGB RGB texture images.
Soft decoder module 1001, for carrying out soft decoding to described image, obtains bright chroma YUV image.
Modular converter 1002, for the YUV image to be converted into RGB texture images.
In one embodiment, as shown in figure 11, the processing module 703 includes:Handle submodule 1101.
Submodule 1101 is handled, for the wide and height according to image, and the pixel is to the central point of described image Distance, and arc distortion textural characteristics, the pixel is handled.
In one embodiment, the processing submodule 1101 is handled the pixel according to below equation:
X1=xa;
Y1=ya;
A=arctang (r1)/r1;
R1=r/s;
Wherein, using the central point of described image as the origin of two-dimensional Cartesian coordinate system, (x, y) is pixel described in before processing Coordinate, (x1, y1) for processing after the pixel coordinate, a for distortion processing coefficient, r be pixel described in before processing (x, Y) to described image central point distance, r1 for processing after the pixel (x1, y1) to described image central point away from From the distance that, R arrives the central point of described image for the summit of described image, w is the width of described image, h for described image height, S is default effect parameter.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 12 is a kind of block diagram of device 1200 for image procossing according to an exemplary embodiment.For example, Device 1200 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 12, device 1200 can include following one or more assemblies:Processing assembly 1202, memory 1204, Power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of input/output (I/O), sensor cluster 1214, and communication component 1216.
The integrated operation of the usual control device 1200 of processing assembly 1202, such as with display, call, data communication, The camera operation operation associated with record operation.Processing assembly 1202 can include one or more processors 1220 to perform Instruction, to complete all or part of step of above-mentioned method.In addition, processing assembly 1202 can include one or more moulds Block, is easy to the interaction between processing assembly 1202 and other assemblies.For example, processing assembly 1202 can include multi-media module, To facilitate the interaction between multimedia groupware 1208 and processing assembly 1202.
Memory 1204 is configured as storing various types of data supporting the operation in device 1200.These data Example includes the instruction of any application program or method for being used to operate on device 1200, contact data, telephone book data, Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they Combination realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1206 provides power supply for the various assemblies of device 1200.Power supply module 1206 can include power management System, one or more power supplys, and other components associated with generating, managing and distributing power supply for device 1200.
Multimedia groupware 1208 is included in the screen of one output interface of offer between described device 1200 and user. In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic The border of work, but also the detection duration related to the touch or slide and pressure.In certain embodiments, it is many Media component 1208 includes a front camera and/or rear camera.When device 1200 is in operator scheme, mould is such as shot When formula or video mode, front camera and/or rear camera can receive the multi-medium data of outside.Each preposition shooting Head and rear camera can be a fixed optical lens systems or with focusing and optical zoom capabilities.
Audio-frequency assembly 1210 is configured as output and/or input audio signal.For example, audio-frequency assembly 1210 includes a wheat Gram wind (MIC), when device 1200 is in operator scheme, when such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal received can be further stored in memory 1204 or via communication Component 1216 is sent.In certain embodiments, audio-frequency assembly 1210 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1212 are that interface, above-mentioned peripheral interface module are provided between processing assembly 1202 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented Estimate.For example, sensor cluster 1214 can detect opening/closed mode of device 1200, the relative positioning of component, such as institute Display and keypad that component is device 1200 are stated, sensor cluster 1214 can be with detection means 1200 or device 1200 The position of one component changes, the existence or non-existence that user contacts with device 1200, the orientation of device 1200 or acceleration/deceleration with The temperature change of device 1200.Sensor cluster 1214 can include proximity transducer, be configured in not any thing The presence of object nearby is detected during reason contact.Sensor cluster 1214 can also include optical sensor, and such as CMOS or ccd image are passed Sensor, for being used in imaging applications.In certain embodiments, the sensor cluster 1214 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 1200.It is exemplary at one In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1216 also includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 1204 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 1220 of device 1200.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of device of image procossing, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the image that photographing device is photographed;
Judge whether to need to enter described image line distortion to handle;
When it is determined that needing to enter described image line distortion processing, for each pixel in described image, according to figure The wide and height of picture, and the pixel are handled the pixel to the distance of the central point of described image.
The processor can be additionally configured to:
One of it is described to judge whether to need to enter described image line distortion to handle, at least comprise the following steps:
According to the facility information of the photographing device, judge whether the photographing device includes wide-angle lens, clapped described When including wide-angle lens according to equipment, it is determined that needing to enter described image line distortion processing;
Whether include the textural characteristics of multiple arcs, at described image edge if judging the textural characteristics of described image edge When the textural characteristics at place include the textural characteristics of multiple arcs, it is determined that needing to enter described image line distortion processing.
The processor can be additionally configured to:
Before handling the pixel, methods described also includes:
Hard decoder is carried out to described image, RGB RGB texture images are obtained;
Or
Soft decoding is carried out to described image, bright chroma YUV image is obtained;
The YUV image is converted into RGB texture images.
The processor can be additionally configured to:
The wide and height according to image, and the pixel is to the distance of the central point of described image, to the picture Vegetarian refreshments is handled, including:
According to the wide and height of image, and the pixel is to the distance of the central point of described image, and arc distortion Textural characteristics, the pixel is handled.
The processor can be additionally configured to:
The wide and height according to image, and the pixel is to the distance of the central point of described image, and arc The textural characteristics of distortion, are handled the pixel, including:
The pixel is handled according to below equation:
X1=xa;
Y1=ya;
A=arctang (r1)/r1;
R1=r/s;
Wherein, using the central point of described image as the origin of two-dimensional Cartesian coordinate system, (x, y) is pixel described in before processing Coordinate, (x1, y1) for processing after the pixel coordinate, a for distortion processing coefficient, r be pixel described in before processing (x, Y) to described image central point distance, r1 for processing after the pixel (x1, y1) to described image central point away from From the distance that, R arrives the central point of described image for the summit of described image, w is the width of described image, h for described image height, S is default effect parameter.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device is performed so that mobile terminal is able to carry out a kind of method of image procossing, and methods described includes:
Obtain the image that photographing device is photographed;
Judge whether to need to enter described image line distortion to handle;
When it is determined that needing to enter described image line distortion processing, for each pixel in described image, according to figure The wide and height of picture, and the pixel are handled the pixel to the distance of the central point of described image.
Instruction in the storage medium can also include:
One of it is described to judge whether to need to enter described image line distortion to handle, at least comprise the following steps:
According to the facility information of the photographing device, judge whether the photographing device includes wide-angle lens, clapped described When including wide-angle lens according to equipment, it is determined that needing to enter described image line distortion processing;
Whether include the textural characteristics of multiple arcs, at described image edge if judging the textural characteristics of described image edge When the textural characteristics at place include the textural characteristics of multiple arcs, it is determined that needing to enter described image line distortion processing.
Instruction in the storage medium can also include:
Before handling the pixel, methods described also includes:
Hard decoder is carried out to described image, RGB RGB texture images are obtained;
Or
Soft decoding is carried out to described image, bright chroma YUV image is obtained;
The YUV image is converted into RGB texture images.
Instruction in the storage medium can also include:
The wide and height according to image, and the pixel is to the distance of the central point of described image, to the picture Vegetarian refreshments is handled, including:
According to the wide and height of image, and the pixel is to the distance of the central point of described image, and arc distortion Textural characteristics, the pixel is handled.
Instruction in the storage medium can also include:
The wide and height according to image, and the pixel is to the distance of the central point of described image, and arc The textural characteristics of distortion, are handled the pixel, including:
The pixel is handled according to below equation:
X1=xa;
Y1=ya;
A=arctang (r1)/r1;
R1=r/s;
Wherein, using the central point of described image as the origin of two-dimensional Cartesian coordinate system, (x, y) is pixel described in before processing Coordinate, (x1, y1) for processing after the pixel coordinate, a for distortion processing coefficient, r be pixel described in before processing (x, Y) to described image central point distance, r1 for processing after the pixel (x1, y1) to described image central point away from From the distance that, R arrives the central point of described image for the summit of described image, w is the width of described image, h for described image height, S is default effect parameter.
Figure 13 is a kind of block diagram of device 1300 for image procossing according to an exemplary embodiment.For example, Device 1300 may be provided in a computer.Reference picture 13, device 1300 includes processing assembly 1322, and it further comprises one Individual or multiple processors, and as the memory resource representated by memory 1332, can be by processing assembly 1322 for storing The instruction of execution, such as application program.The application program stored in memory 1332 can include one or more every One module corresponding to one group of instruction.In addition, processing assembly 1322 is configured as execute instruction, to perform above method image Processing.
Device 1300 can also include the power management that a power supply module 1326 is configured as performs device 1300, one Wired or wireless network interface 1350 is configured as device 1300 being connected to network, and input and output (I/O) interface 1358.Device 1300 can be operated based on the operating system for being stored in memory 1332, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a kind of method of image procossing, it is characterised in that including:
Obtain the image that photographing device is photographed;
Judge whether to need to enter described image line distortion to handle;
When it is determined that needing to enter described image line distortion processing, for each pixel in described image, according to image Wide and height, and the pixel are handled the pixel to the distance of the central point of described image.
2. the method for image procossing according to claim 1, it is characterised in that described to judge whether to need to described image One of enter line distortion processing, at least comprise the following steps:
According to the facility information of the photographing device, judge whether the photographing device includes wide-angle lens, set in described take pictures During for comprising wide-angle lens, it is determined that needing to enter described image line distortion processing;
Whether include the textural characteristics of multiple arcs, in described image edge if judging the textural characteristics of described image edge When textural characteristics include the textural characteristics of multiple arcs, it is determined that needing to enter described image line distortion processing.
3. the method for image procossing according to claim 1, it is characterised in that before handling the pixel, Methods described also includes:
Hard decoder is carried out to described image, RGB RGB texture images are obtained;
Or
Soft decoding is carried out to described image, bright chroma YUV image is obtained;
The YUV image is converted into RGB texture images.
4. the method for image procossing according to claim 1, it is characterised in that the wide and height according to image, and The pixel is handled the pixel to the distance of the central point of described image, including:
According to the wide and height of image, and the pixel is to the line of the distance of the central point of described image, and arc distortion Feature is managed, the pixel is handled.
5. the method for image procossing according to claim 4, it is characterised in that the wide and height according to image, and The pixel to the central point of described image distance, and arc distortion textural characteristics, at the pixel Reason, including:
The pixel is handled according to below equation:
X1=xa;
Y1=ya;
A=arctang (r1)/r1;
R1=r/s;
r = x 2 + y 2 ;
R = w 2 + h 2 ;
Wherein, using the central point of described image as the origin of two-dimensional Cartesian coordinate system, (x, y) is the seat of pixel described in before processing Mark, (x1, y1) is the coordinate of the pixel after processing, and a is distortion processing coefficient, and r is that pixel (x, y) described in before processing is arrived The distance of the central point of described image, r1 is the pixel (x1, y1) after processing to the distance of the central point of described image, R For described image summit to the distance of the central point of described image, w is the width of described image, and h is the height of described image, and s is Default effect parameter.
6. a kind of device of image procossing, it is characterised in that including:
Acquisition module, for obtaining the image that photographing device is photographed;
Judge module, for judging whether to need to enter described image line distortion to handle;
Processing module, for when it is determined that needing to enter described image line distortion processing, for each pixel in described image Point, according to the wide and height of image, and the pixel is to the distance of the central point of described image, at the pixel Reason.
7. the device of image procossing according to claim 6, it is characterised in that the judge module at least includes following son One of module:
Whether the first judging submodule, for the facility information according to the photographing device, judge the photographing device comprising wide Angle mirror head, when the photographing device includes wide-angle lens, it is determined that needing to enter described image line distortion processing;
Second judging submodule, for judging whether the textural characteristics of described image edge include the texture spy of multiple arcs Levy, when the textural characteristics of described image edge include the textural characteristics of multiple arcs, it is determined that needing to carry out described image Distortion is handled.
8. the device of image procossing according to claim 6, it is characterised in that described device also includes:
Hard decoder module, for carrying out hard decoder to described image, obtains RGB RGB texture images;
Or
Soft decoder module, for carrying out soft decoding to described image, obtains bright chroma YUV image;
Modular converter, for the YUV image to be converted into RGB texture images.
9. the device of image procossing according to claim 6, it is characterised in that the processing module includes:
Submodule is handled, for the wide and height according to image, and the pixel is to the distance of the central point of described image, with And the textural characteristics of arc distortion, the pixel is handled.
10. the device of image procossing according to claim 9, it is characterised in that the processing submodule is according to following public affairs Formula is handled the pixel:
X1=xa;
Y1=ya;
A=arctang (r1)/r1;
R1=r/s;
r = x 2 + y 2 ;
R = w 2 + h 2 ;
Wherein, using the central point of described image as the origin of two-dimensional Cartesian coordinate system, (x, y) is the seat of pixel described in before processing Mark, (x1, y1) is the coordinate of the pixel after processing, and a is distortion processing coefficient, and r is that pixel (x, y) described in before processing is arrived The distance of the central point of described image, r1 is the pixel (x1, y1) after processing to the distance of the central point of described image, R For described image summit to the distance of the central point of described image, w is the width of described image, and h is the height of described image, and s is Default effect parameter.
11. a kind of device of image procossing, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
Obtain the image that photographing device is photographed;
Judge whether to need to enter described image line distortion to handle;
When it is determined that needing to enter described image line distortion processing, for each pixel in described image, according to image Wide and height, and the pixel are handled the pixel to the distance of the central point of described image.
CN201710192953.6A 2017-03-28 2017-03-28 The method and device of image procossing Pending CN106991658A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710192953.6A CN106991658A (en) 2017-03-28 2017-03-28 The method and device of image procossing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710192953.6A CN106991658A (en) 2017-03-28 2017-03-28 The method and device of image procossing

Publications (1)

Publication Number Publication Date
CN106991658A true CN106991658A (en) 2017-07-28

Family

ID=59412985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710192953.6A Pending CN106991658A (en) 2017-03-28 2017-03-28 The method and device of image procossing

Country Status (1)

Country Link
CN (1) CN106991658A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022147964A1 (en) * 2021-01-07 2022-07-14 稿定(厦门)科技有限公司 Image distortion rendering method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116878A (en) * 2013-02-25 2013-05-22 徐渊 Method and device for correcting image barrel distortion and image processing device
CN103369192A (en) * 2012-03-31 2013-10-23 深圳市振华微电子有限公司 Method and device for Full-hardware splicing of multichannel video images
CN203352678U (en) * 2013-01-30 2013-12-18 深圳市振华微电子有限公司 Panoramic image hardware imaging device with six camera heads
CN105096269A (en) * 2015-07-21 2015-11-25 北京交通大学 Radial image distortion rectifying method and system based on distorted linear structure detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369192A (en) * 2012-03-31 2013-10-23 深圳市振华微电子有限公司 Method and device for Full-hardware splicing of multichannel video images
CN203352678U (en) * 2013-01-30 2013-12-18 深圳市振华微电子有限公司 Panoramic image hardware imaging device with six camera heads
CN103116878A (en) * 2013-02-25 2013-05-22 徐渊 Method and device for correcting image barrel distortion and image processing device
CN105096269A (en) * 2015-07-21 2015-11-25 北京交通大学 Radial image distortion rectifying method and system based on distorted linear structure detection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭爽: ""智能监控系统中跨平台播放器的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022147964A1 (en) * 2021-01-07 2022-07-14 稿定(厦门)科技有限公司 Image distortion rendering method and apparatus

Similar Documents

Publication Publication Date Title
US10565763B2 (en) Method and camera device for processing image
CN106454336B (en) The method and device and terminal that detection terminal camera is blocked
CN104683691B (en) Image pickup method, device and equipment
CN105245775B (en) camera imaging method, mobile terminal and device
EP3163884A1 (en) Image acquiring method and apparatus, computer program and recording medium
CN107155060A (en) Image processing method and device
CN104834878A (en) Terminal information display method and device
US20200034900A1 (en) Method and apparatus for displaying commodity
CN113365153B (en) Data sharing method and device, storage medium and electronic equipment
WO2016045323A1 (en) Method and device for controlling presentation of video picture
CN105139033A (en) Classifier construction method and device and image processing method and device
CN107911576A (en) Image processing method, device and storage medium
CN107783715A (en) Using startup method and device
CN107480785A (en) The training method and device of convolutional neural networks
CN104539497B (en) Method for connecting network and device
EP3104282A1 (en) Search method and search apparatus
CN106557294A (en) Color adjustment method and device
CN114500821B (en) Photographing method and device, terminal and storage medium
CN108398845A (en) Projection device control method and projection device control device
CN106991658A (en) The method and device of image procossing
CN107025638A (en) The method and device of image procossing
CN111064886B (en) Shooting method of terminal equipment, terminal equipment and storage medium
CN104793847B (en) Picture display method and device
CN107239490A (en) A kind of method, device and the computer-readable recording medium of name facial image
CN106775306A (en) Character clone method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170728