CN104601877B - Image processing method, apparatus and system - Google Patents
Image processing method, apparatus and system Download PDFInfo
- Publication number
- CN104601877B CN104601877B CN201410192586.6A CN201410192586A CN104601877B CN 104601877 B CN104601877 B CN 104601877B CN 201410192586 A CN201410192586 A CN 201410192586A CN 104601877 B CN104601877 B CN 104601877B
- Authority
- CN
- China
- Prior art keywords
- image
- target
- angle
- preset condition
- scene
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Image Processing (AREA)
Abstract
The present invention provides a kind of image processing method, including:Target image is obtained, the target image includes:The image of target object of reference and the image of target scene;According to the image of the target object of reference, whether the image for detecting the target scene is preset condition in the target image;When the image of the target scene is not the preset condition in the target image, the image of the target scene is adjusted to the preset condition on the basis of the image of the target object of reference.In addition, the present invention also provides a kind of image processing apparatus and system.Above-mentioned image processing method, apparatus and system can realize the automatic business processing of target image, so as to improve the efficiency of image procossing.
Description
Technical field
The present invention relates to computer technology, more particularly to a kind of image processing method, apparatus and system.
Background technology
Existing image processing system can not be in the image shot of adjust automatically image state, if it is desired to make bat
Image in the image taken out is level, just horizontal position must be placed the cameras at when shooting, if camera
Position it is askew, then i.e. the image in the image shot is askew.Now, if it is desired to which the image allowed in image is changed into
Horizontality, that just can only be manually adjusted by user by using the image software of specialty to it, and entirely adjusted
Also need to judge whether the result of adjustment is correct, error easily occurs by human eye frequently during whole.Therefore, existing figure
The problem of there is cumbersome and low treatment effeciency as treatment technology.
The content of the invention
In view of this, the present invention provides a kind of image processing method, apparatus and system, above-mentioned image processing method, device
And system can realize the automatic business processing of target image, so as to improve the efficiency of image procossing.
A kind of image processing method provided in an embodiment of the present invention, including:Obtain in target image, the target image and wrap
Include:The image of target object of reference and the image of target scene;According to the image of the target object of reference, the target scape is detected
Whether the image of elephant is preset condition in the target image;When the target scene image in the target image not
During for the preset condition, the image of the target scene is adjusted to described pre- on the basis of the image of the target object of reference
Configuration state.
A kind of image processing apparatus provided in an embodiment of the present invention, including:Acquisition module, detection module and processing mould
Block.Wherein, the acquisition module, for obtaining target image, the target image includes:The image of target object of reference and
The image of target scene;The detection module, for the image of the target object of reference obtained according to the acquisition module, inspection
Whether the image for surveying the target scene is preset condition in the target image;The processing module, for when the inspection
When survey module detects that the image of the target scene is not the preset condition in the target image, joined with the target
According to the image of the target scene is adjusted into the preset condition on the basis of the image of thing.
A kind of image processing system provided in an embodiment of the present invention, including:Comparable device, filming apparatus, fixing device with
And image processing apparatus;Wherein, the comparable device, the comparable device is regard as target object of reference for the filming apparatus
Shoot in the target image, so that described image processing unit regard the image of the target object of reference as the processing target figure
The benchmark of picture;The filming apparatus, described image processing is sent to for shooting the target image, and by the target image
Device, the target image includes:The image of the target object of reference and the image of target scene;The fixing device,
For fixing the comparable device and the filming apparatus so that filming apparatus preset distance described in the comparable device interval,
The preset position in front of the camera lens of the filming apparatus is fixed in, and holding and the relative position of the filming apparatus are constant;
Described image processing unit, for obtaining the target image, according to the image of the target object of reference, detects the target scape
Whether the image of elephant is preset condition in the target image, when the target scene image in the target image not
During for the preset condition, the image of the target scene is adjusted to described pre- on the basis of the image of the target object of reference
Configuration state.
Above-mentioned image processing method provided in an embodiment of the present invention, apparatus and system, pass through the target image according to acquisition
In target object of reference image, whether the image for detecting the target scene in the target image is preset in the target image
State, and when the image of the target scene is not the preset condition in the target image, with the image of the target object of reference
On the basis of the image of the target scene is adjusted to the preset condition, due to the shadow of target object of reference that can be in target image
As the state of the image of detection target scene, and can be according to the image of the testing result adjust automatically target scene in target image
In state, therefore the automatic business processing of target image can be realized, so as to improve the efficiency of image procossing.
For the above and other objects, features and advantages of the present invention can be become apparent, preferred embodiment cited below particularly,
And coordinate institute's accompanying drawings, it is described in detail below.
Brief description of the drawings
Fig. 1 shows a kind of structured flowchart of terminal device.
The flow chart for the image processing method that Fig. 2 provides for first embodiment of the invention.
The flow chart for the image processing method that Fig. 3 provides for second embodiment of the invention.
First schematic diagram of target image in the image processing method that Fig. 4 provides for second embodiment of the invention.
Second schematic diagram of target image in the image processing method that Fig. 5 provides for second embodiment of the invention.
The structural representation for the image processing apparatus that Fig. 6 provides for third embodiment of the invention.
Fig. 7 is the storage environment schematic diagram of Fig. 6 device.
The structural representation for the image processing apparatus that Fig. 8 provides for fourth embodiment of the invention.
The structural representation of part of module in the image processing apparatus that Fig. 9 provides for fourth embodiment of the invention.
The structural representation for the image processing system that Figure 10 provides for fifth embodiment of the invention.
Embodiment
Further to illustrate that the present invention is to realize technological means and effect that predetermined goal of the invention is taken, below in conjunction with
Accompanying drawing and preferred embodiment, to embodiment, structure, feature and its effect according to the present invention, are described in detail as after.
The image processing method that the embodiment of the present invention is provided can be applied in terminal device realize the place to target image
Reason, terminal device can include:Smart mobile phone, tablet personal computer with camera function, E-book reader, MP3 player
(Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3),
MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect
4) player, pocket computer on knee, desktop computer, vehicle-mounted computer, all-in-one, intelligent TV set, digital camera etc.
Deng.
Fig. 1 shows a kind of structured flowchart of terminal device.As shown in figure 1, terminal device 100 includes memory 102, deposited
Store up controller 104, one or more (one is only shown in figure) processors 106, Peripheral Interface 108, radio-frequency module 110, positioning
Module 112, photographing module 114, audio-frequency module 116, screen 118 and key-press module 120.These components pass through one or more
Communication bus/signal wire 122 is mutually communicated.
It is appreciated that the structure shown in Fig. 1 be only signal, terminal device 100 may also include it is more more than shown in Fig. 1 or
Less component, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can using hardware, software or its
Combination is realized.
Image processing method, dress that memory 102 can be used for storing in software program and module, such as embodiment of the present invention
Put and the corresponding programmed instruction/module of system, processor 102 by operation be stored in software program in memory 104 and
Module, so as to perform various function application and data processing, that is, realizes above-mentioned image processing method.
Memory 102 may include high speed random access memory, may also include nonvolatile memory, such as one or more magnetic
Property storage device, flash memory or other non-volatile solid state memories.In some instances, memory 102 can further comprise
The memory remotely located relative to processor 106, these remote memories can pass through network connection to terminal device 100.
The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.Processor
106 and access of other possible components to memory 102 can be carried out under the control of storage control 104.
Various softwares in the run memory 102 of processor 106, instruct with perform the various functions of terminal device 100 with
And carry out data processing.
Peripheral Interface 108 is used to various external equipments being coupled to CPU and memory 102.
In certain embodiments, storage control 104, processor 106 and Peripheral Interface 108 can be in one single chips
Realize.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 110 is used to receiving and sending electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, so that with
Communication network or other equipment are communicated.Radio-frequency module 110 may include the various existing electricity for being used to perform these functions
Circuit component, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card,
Memory etc..Radio-frequency module 110 can be communicated or led to various networks such as internet, intranet, wireless network
Wireless network is crossed to be communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or
Metropolitan Area Network (MAN).Above-mentioned wireless network can use various communication standards, agreement and technology, and including but not limited to the whole world is mobile logical
Letter system (Global System for Mobile Communication, GSM), enhanced mobile communication technology
(Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code division
Multiple access, W-CDMA), CDMA (Code division access, CDMA), TDMA
(time division multiple access, TDMA), bluetooth, adopting wireless fidelity technology (Wireless, Fidelity,
WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.11a, IEEE802.11b, IEEE802.11g and/or
IEEE802.11n), the networking telephone (Voice over internet protocol, VoIP), worldwide interoperability for microwave accesses
(Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, IMU
The agreement of news and short message, and any other suitable communications protocol, or even may include that those are not developed currently yet
Agreement.
Locating module 112 is used for the current location for obtaining terminal device 100.The example of locating module 112 includes but not limited
In GPS (GPS), the location technology based on WLAN or mobile radio communication.
Photographing module 114 is used to shoot photo or video.The photo or video of shooting can be stored to memory 102
It is interior, and can be sent by radio-frequency module 110.
Audio-frequency module 116 provides a user COBBAIF, and it may include one or more microphones, one or more raises
Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data at Peripheral Interface 108, and voice data is converted into power information,
Power information is transmitted to loudspeaker.Power information is converted to the sound wave that human ear can be heard by loudspeaker.Voicefrequency circuit is also from microphone
Place receives power information, converts electrical signals to voice data, and by data transmission in network telephony into Peripheral Interface 108 to enter traveling one
The processing of step.Voice data can be obtained at memory 102 or by radio-frequency module 110.In addition, voice data can also
Store into memory 102 or be transmitted by radio-frequency module 110.In some instances, audio-frequency module 116 may also include
One earphone broadcasts hole, for providing COBBAIF to earphone or other equipment.
Screen 118 provides an output interface between terminal device 100 and user, and video frequency output is shown to user, this
The content of a little video frequency outputs may include word, figure, video and its any combination.Some output results correspond to some use
Family interface object.It should be understood that screen 118 can also between terminal device 100 and user simultaneously provide one output and
Inputting interface.Specifically, in addition to showing video frequency output to user, screen 118 also receives the input of user, such as user's
The gesture operations such as click, slip, so that user interface object is responded to the input of these users.Detect the skill of user's input
Art can be based on resistance-type, condenser type or other any possible touch control detection technologies.The display unit of screen 118 it is specific
Example includes but is not limited to liquid crystal display or light emitting polymer displays.
Key-press module 120 equally provides the interface that user is inputted to terminal device 100, and user can be by pressing not
Same button is so that terminal device 100 performs different functions.
First embodiment
The flow chart for the image processing method that Fig. 2 provides for first embodiment of the invention.As shown in Fig. 2 the present embodiment is carried
The image processing method of confession comprises the following steps:
Step S11, obtains target image, and the target image includes:The image of target object of reference and target scene
Image;
Specifically, the image of target object of reference is, when carrying out the shooting of target image, to be preset at the shooting of terminal device
The image of some object in front of the camera lens of module.The image of target object of reference can be as the image of adjustment target scene in target
The benchmark of state in image.
It should be understood that photographing module can be some part of terminal device (for example:Camera in mobile phone),
Can also be single camera device (for example:Camera or external camera).
In the case where photographing module is some part of terminal device, when photographic subjects image, target reference
Thing and terminal device interval preset distance, be placed in front of the camera lens of the terminal device can be in coverage preset position, and
The relative position with the terminal device is kept to fix, namely when position movement occurs for terminal device, target object of reference can be with end
End equipment synchronizing moving together.Now, the shooting instruction that terminal device can be triggered according to user, is clapped by built-in photographing module
Take the photograph target image.
In the case where photographing module is single camera device, when photographic subjects image, target object of reference and shooting
Device interval preset distance, be placed in front of camera device can be in coverage position, and keep relative with camera device
Position is fixed, namely when camera device occur position movement when, target object of reference can together with camera device synchronizing moving.This
When, terminal device can receive the target image of camera device transmission.Or, what terminal device can also be triggered according to user obtains
Instruction fetch, obtains the target image that camera device is shot from other storage devices.
Step S12, according to the image of the target object of reference, detect the image of the target scene in the target image whether
For preset condition;
Specifically, preset condition can include:The state of horizontality, plumbness or other any angles.
Step S13, when the image of the target scene is not the preset condition in the target image, with the target reference
The image of the target scene is adjusted to the preset condition on the basis of the image of thing.
Image processing method provided in an embodiment of the present invention, passes through the target object of reference in the target image according to acquisition
Image, whether the image for detecting the target scene in the target image is preset condition in the target image, and when the target
When the image of scene is not the preset condition in the target image, by the target scape on the basis of the image of the target object of reference
The image of elephant is adjusted to the preset condition, due to the Image detection target scene of target object of reference that can be in target image
The state of image, and can be according to the state of the image of the testing result adjust automatically target scene in the target image, therefore can
The automatic business processing of target image is realized, so as to improve the efficiency of image procossing.
Second embodiment
The flow chart for the image processing method that Fig. 3 provides for second embodiment of the invention.As shown in figure 3, the present embodiment is carried
The image processing method of confession comprises the following steps:
Step S21, obtains target image, and the target image includes:The image of linker and the image of target scene;
Linker is that a kind of upper end open is not connected, the container of bottom connection, is marked with liquid in linker, is not flowed in liquid
In the case of dynamic, the liquid level that linker is respectively held should keep equal.Linker in the present embodiment is preferably transparent and hollow
Material, and the internal U-shaped linker for being marked with colored liquid.It should be understood that the end of linker is not limited to two.
Specifically, terminal device obtains target image by photographing module, as shown in figure 4, the target image includes:Even
The image of logical device and the image of target scene.
Line between step S22, the image for the liquid level for obtaining each end of the linker, reference is defined as by the line
Line;
Specifically, terminal device determines the position of the image of the liquid level of two ends of linker in the target image first
Put, then the position according to the image of the liquid level for two ends determined in the target image, obtain two ends of linker
Line between the image of the liquid level in portion.Based on when liquid is in the linker of both ends open, liquid surface is in same water
The principle that prosposition is put, it is known that above-mentioned line is exactly the real standard line in shooting process, therefore the line can be defined as into reference
Line (as shown in Figure 5).
Step S23, obtains the edge and the line of reference or the angle with the extended line of the line of reference of the target image;
Specifically, as shown in Figure 5, it is assumed that set up reference axis with the upper left corner of target image, terminal device can obtain target
Perpendicular to the edge of X-axis and the line of reference in four edges of image, or the symbol between the edge and the extended line of the line of reference
Close the angle of prerequisite (for example:Angle on the outside of the maximum angle of angle or the minimum angle of angle, edge etc.), and
The angle is compared with preset angle, to judge whether the state of the image of target scene in the target image meets preset
State.
It should be understood that above-mentioned angle is not limited in four edges of target image perpendicular to the edge of X-axis and the ginseng
According to line, or the angle for meeting prerequisite or the four of target image between the edge and the extended line of the line of reference
Meet preset bar perpendicular to the edge of Y-axis and the line of reference in individual edge, or between the edge and the extended line of the line of reference
The angle of part.
Step S24, when the angle is presetting angle, the image for determining the target scene is preset in the target image
State, then performs step S27;
Specifically, preset condition may include:Horizontality, plumbness or other states corresponding with presetting angle.When
When preset condition is horizontality, presetting angle is 90 degree.Terminal device can be obtained in four edges of target image perpendicular to X
It is located in four angles between the edge of axle and the extended line of the line of reference on the outside of the edge and close to the angle of Y-axis positive direction
(as shown in Figure 5), and the angle and presetting angle are compared, when the angle is 90 degree, it may be determined that the target scene
Image is horizontality in the target image.
Step S25, when the angle is not the presetting angle, determines the image of the target scene in the target image not
For the preset condition.
Specifically, when the angle obtained in step S24 is more than or less than 90 degree, terminal device can determine that the target scene
Image in the target image be horizontality.
Step S26, carries out rotation processing, by the way that the angle is adjusted into the pre- angle setting according to the angle by the target image
Degree so that the image of the target scene is adjusted to the preset condition.
Specifically, when the angle obtained in step S24 is more than 90 degree, terminal device can be according to the angle, by target figure
As carrying out clockwise rotation processing, each pixel in the image of target scene and its in the target image original are obtained
Coordinate, according to the angle and the original coordinates, each pixel after calculating on the basis of Y-axis by turning clockwise
Coordinates of targets, then according to the coordinates of targets, each pixel is adjusted the correspondence position into the target image so that mesh
The image of mark scene is adjusted to horizontality in the target image.
When the angle obtained in step S24 is less than 90 degree, terminal device can be carried out target image inverse according to the angle
The rotation processing of hour hands so that the image of target scene is adjusted to horizontality in the target image, rotate counterclockwise with it is upper
State that the handling principle turned clockwise is identical, here is omitted.
Although it should be understood that above-mentioned is to saying that the situation that the image of target scene is adjusted to horizontality is done
It is bright, but in the case where the image of target scene to be adjusted to plumbness or other states corresponding with presetting angle, terminal
Equipment may be based on being handled with described above identical principle.
Step S27, the image of the target object of reference is eliminated from the target image after adjustment.
Specifically, first, can be according to the view data of preset target object of reference, in the target image after identification adjustment
The image (namely the image matched in the target image after adjustment with the view data) of target object of reference;Secondly, obtaining should
The original pixel value of each pixel in the image of target object of reference, and presetting range around the image of the target object of reference
The pixel value of the pixel of interior image;Again, according to preset around the image of the original pixel value and the target object of reference
In the range of image pixel pixel value, calculate the object pixel of each pixel in the image of the target object of reference
Value;Then, the original pixel value of each pixel in the image of the target object of reference is replaced with the target pixel value so that should
The image of target object of reference is eliminated from the target image after adjustment.Wherein, the view data of preset target object of reference
The set of the gray value of each pixel in the standard video of the target object of reference that is represented with numerical value can be included.
Image processing method provided in an embodiment of the present invention, passes through the target object of reference in the target image according to acquisition
Image, whether the image for detecting the target scene in the target image is preset condition in the target image, and when the target
When the image of scene is not the preset condition in the target image, by the target scape on the basis of the image of the target object of reference
The image of elephant is adjusted to the preset condition, due to that terminal device deliberately need not be adjusted into horizontality before shooting, and when bat
After the completion of taking the photograph, the state of the image of the Image detection target scene of target object of reference that can be in target image, and can basis
The state of the image of the testing result adjust automatically target scene in the target image, therefore the automation of target image can be realized
Processing, so as to improve the efficiency of image procossing.
3rd embodiment
The structural representation for the image processing apparatus that Fig. 6 provides for third embodiment of the invention.The figure that the present embodiment is provided
The image processing method that can be used for as processing unit in above-described embodiment.As shown in fig. 6, image processing apparatus 30 includes:Obtain
Modulus block 31, detection module 32 and processing module 33.
Wherein, acquisition module 31, for obtaining target image, the target image includes:The image of target object of reference with
And the image of target scene;
Detection module 32, for the image of the target object of reference obtained according to acquisition module 31, detects the target scene
Image whether be preset condition in the target image;
Processing module 33, for detecting that the image of the target scene is not to be somebody's turn to do in the target image when detection module 32
During preset condition, the image of the target scene is adjusted to the preset condition on the basis of the image of the target object of reference.
Each module can be that now, above-mentioned each module can be stored in memory 102 by software code realization above,
As shown in Figure 7.Each module can equally be realized by hardware such as IC chip above.
The present embodiment is referred to above-mentioned to the detailed process of the respective function of each Implement of Function Module of image processing apparatus 30
Fig. 1 is to the particular content described in embodiment illustrated in fig. 5, and here is omitted.
Image processing apparatus provided in an embodiment of the present invention, passes through the target object of reference in the target image according to acquisition
Image, whether the image for detecting the target scene in the target image is preset condition in the target image, and when the target
When the image of scene is not the preset condition in the target image, by the target scape on the basis of the image of the target object of reference
The image of elephant is adjusted to the preset condition, due to the Image detection target scene of target object of reference that can be in target image
The state of image, and can be according to the state of the image of the testing result adjust automatically target scene in the target image, therefore can
The automatic business processing of target image is realized, so as to improve the efficiency of image procossing.
Fourth embodiment
The structural representation for the image processing apparatus that Fig. 8 provides for fourth embodiment of the invention.The figure that the present embodiment is provided
The image processing method that can be used for as processing unit in above-described embodiment.As shown in figure 8, image processing apparatus 40 includes:Obtain
Modulus block 41, detection module 42, processing module 43 and cancellation module 44.
Wherein, acquisition module 41, for obtaining target image, the target image includes:The image of target object of reference with
And the image of target scene;
Detection module 42, for the image of the target object of reference obtained according to acquisition module 42, detects the target scene
Image whether be preset condition in the target image;
Processing module 43, for detecting that the image of the target scene is not to be somebody's turn to do in the target image when detection module 43
During preset condition, the image of the target scene is adjusted to the preset condition on the basis of the image of the target object of reference;
Cancellation module 44, for the image of the target object of reference to be eliminated from the target image after adjustment.
Preferably, the image of the target object of reference includes:The image of linker.
Preferably, as shown in figure 9, detection module 42 includes:Line of reference determining unit 421, angle acquiring unit 422 and
Detection unit 423.Wherein, the company between line of reference determining unit 421, the image of the liquid level at each end for obtaining the linker
Line, line of reference is defined as by the line;Angle acquiring unit 422, the edge for obtaining the target image is determined with line of reference
The line of reference that unit 421 is determined or the angle with the extended line of the line of reference;Detection unit 423, for being pre- when the angle
When angle setting is spent, the image for determining the target scene is the preset condition in the target image, when the angle is not the pre- angle setting
When spending, the image for determining the target scene is not the preset condition in the target image.
Preferably, processing module 43 includes:Adjustment unit 431, for being rotated the target image according to the angle
Processing, by the way that the angle is adjusted into the presetting angle so that the image of the target scene is adjusted to the preset condition.
Preferably, the preset condition includes horizontality.
The present embodiment is referred to above-mentioned to the detailed process of the respective function of each Implement of Function Module of image processing apparatus 40
Fig. 1 is to the particular content described in embodiment illustrated in fig. 5, and here is omitted.
Image processing apparatus provided in an embodiment of the present invention, passes through the target object of reference in the target image according to acquisition
Image, whether the image for detecting the target scene in the target image is preset condition in the target image, and when the target
When the image of scene is not the preset condition in the target image, by the target scape on the basis of the image of the target object of reference
The image of elephant is adjusted to the preset condition, due to that terminal device deliberately need not be adjusted into horizontality before shooting, and when bat
After the completion of taking the photograph, the state of the image of the Image detection target scene of target object of reference that can be in target image, and can basis
The state of the image of the testing result adjust automatically target scene in the target image, therefore the automation of target image can be realized
Processing, so as to improve the efficiency of image procossing.
5th embodiment
The structural representation for the image processing system that Figure 10 provides for fifth embodiment of the invention.As shown in Figure 10, image
Processing system 50 includes:Comparable device 51, filming apparatus 52, fixing device 53 and image processing apparatus 54;
Wherein, comparable device 51, shoot in target figure for filming apparatus 52 using comparable device 51 as target object of reference
As in, so that image processing apparatus 54 regard the image of the target object of reference as the benchmark for handling the target image;
Filming apparatus 52, is sent to image processing apparatus 54, the mesh for shooting the target image, and by the target image
Logo image includes:The image of the target object of reference and the image of target scene;
Fixing device 53, for fixing comparable device 51 and filming apparatus 52 so that the interval shooting device of comparable device 51
52 preset distances, are fixed in the preset position in front of the camera lens of filming apparatus 52, and keep the relative position with filming apparatus 52
Put constant;
Image processing apparatus 54, for obtaining the target image, according to the image of the target object of reference, detects the target scape
Whether the image of elephant is preset condition in the target image, when the image of the target scene is not that this is pre- in the target image
During configuration state, the image of the target scene is adjusted to the preset condition on the basis of the image of the target object of reference.
Preferably, comparable device 51 includes linker.
Preferably, the linker includes U-shaped linker.
Preferably, the linker is transparent and hollow material, and inside is marked with colored liquid.
Preferably, the preset position includes the shooting at least making the liquid level at each end of the comparable device be located at the filming apparatus
In the range of position.
Preferably, fixing device 53 includes:Position adjusting type modules (not shown), for the bat according to the filming apparatus
Scope is taken the photograph, the distance between the comparable device and the fixing device is adjusted.
Preferably, comparable device 51 includes:Color control module (not shown), the intensity for detecting light, root
The color of the colored liquid is adjusted according to the strength control of the light.
It should be understood that above-mentioned image processing apparatus 54 can be both integrated in filming apparatus 52 (such as a module
Camera shown in Figure 10) or independently of the terminal device of filming apparatus 52, or image processing apparatus 54 is with shooting dress
Putting 52 can also be integrated in same station terminal equipment as multiple modules with identical function.
It should be understood that each device in the image processing system that the present invention shown in Figure 10 is provided is only an application
Example, can not limited to this in actual application.For example:Fixing device 53 can also include:It is configured with for fixed with reference to dress
Put the head of 51 support or by being configured with for consolidating of fixing that the flat board of comparable device 51 and the neck of filming apparatus 52 constitutes
Determine device etc..
Image processing apparatus 54 in the present embodiment in image processing system realizes that the detailed process of function refers to Fig. 1 extremely
The method of Fig. 5 correspondence embodiments, and Fig. 6 figures, to the device of Fig. 9 correspondence embodiments, here is omitted.
Image processing system provided in an embodiment of the present invention, by setting comparable device, and by fixing device by reference
Device is fixed with filming apparatus so that comparable device can remain constant with the relative position of filming apparatus, work as shooting
When device shoots target image, the shadow of comparable device as target object of reference of the image processing apparatus in target image
Picture, whether the image of detection target scene is in the target image preset condition, and when the image of target scene is in target image
In not be preset condition when, the image of target scene is adjusted to preset condition on the basis of the image of target object of reference.Due to
The benchmark that the image of specific comparable device is handled as target image, therefore without deliberately adjusting filming apparatus before shooting
Whole is horizontality, and after the completion of shooting, the Image detection for the comparable device that image processing apparatus can be in target image
The state of the image of target scene, and can be according to the shape of the image of the testing result adjust automatically target scene in the target image
State, therefore the automatic business processing of target image can be realized, so as to improve the efficiency of image procossing.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation be all between difference with other embodiment, each embodiment identical similar part mutually referring to.
For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined
See the part explanation of embodiment of the method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or device including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or device
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or device including key element.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware
To complete, the hardware of correlation can also be instructed to complete by program, program can be stored in a kind of computer-readable storage
In medium, storage medium mentioned above can be read-only storage, disk or CD etc..
More than, only it is presently preferred embodiments of the present invention, any formal limitation not is made to the present invention, although this
Invention is disclosed above with preferred embodiment, but is not limited to the present invention, any those skilled in the art,
Do not depart from the range of technical solution of the present invention, when the technology contents using the disclosure above make a little change or are modified to equivalent
The equivalent embodiment of change, as long as being that, without departing from technical solution of the present invention content, the technical spirit according to the present invention is real to more than
Any simple modification, equivalent variations and modification that example made are applied, in the range of still falling within technical solution of the present invention.
Claims (15)
1. a kind of image processing method, it is characterised in that including:
Target image is obtained, the target image includes:The image of target object of reference and the image of target scene;The mesh
The image of mark object of reference includes:The image of linker;
According to the image of the target object of reference, whether the image for detecting the target scene is preset in the target image
State;
When the image of the target scene is not the preset condition in the target image, with the target object of reference
The image of the target scene is adjusted to the preset condition on the basis of image;
The image according to the target object of reference, detect the image of the target scene in the target image whether be
The step of preset condition, including:
Line between the image for the liquid level for obtaining each end of the linker, line of reference is defined as by the line;
Obtain the edge and the line of reference or the angle with the extended line of the line of reference of the target image;
When the angle is presetting angle, the image for determining the target scene is the preset shape in the target image
State;
When the angle is not the presetting angle, the image for determining the target scene is not institute in the target image
State preset condition.
2. according to the method described in claim 1, it is characterised in that it is described on the basis of the image of the target object of reference by institute
The step of image for stating target scene is adjusted to the preset condition, including:
The target image is carried out by rotation processing according to the angle, by the way that the angle is adjusted into the presetting angle,
So that the image of the target scene is adjusted to the preset condition.
3. according to the method described in claim 1, it is characterised in that methods described also includes:
The image of the target object of reference is eliminated from the target image after adjustment.
4. according to the method described in claim 1, it is characterised in that the preset condition includes:Horizontality.
5. a kind of image processing apparatus, it is characterised in that including:
Acquisition module, for obtaining target image, the target image includes:The image and target scene of target object of reference
Image;The image of the target object of reference includes:The image of linker;
Detection module, for the image of the target object of reference obtained according to the acquisition module, detects the target scene
Image whether be preset condition in the target image;
Processing module, for detecting that the image of the target scene is not institute in the target image when the detection module
When stating preset condition, the image of the target scene is adjusted to the preset shape on the basis of the image of the target object of reference
State;
The detection module includes:
Line between line of reference determining unit, the image of the liquid level at each end for obtaining the linker, by the line
It is defined as line of reference;
Angle acquiring unit, for obtaining the reference that the edge of the target image is determined with the line of reference determining unit
Line or the angle with the extended line of the line of reference;
Detection unit, for when the angle is presetting angle, determining the image of the target scene in the target image
In be the preset condition, when the angle not be the presetting angle when, determine the image of the target scene in the mesh
It is not the preset condition in logo image.
6. device according to claim 5, it is characterised in that the processing module includes:
Adjustment unit, for the target image to be carried out into rotation processing according to the angle, by the way that the angle is adjusted to
The presetting angle so that the image of the target scene is adjusted to the preset condition.
7. device according to claim 5, it is characterised in that described device also includes:
Cancellation module, for the image of the target object of reference to be eliminated from the target image after adjustment.
8. device according to claim 5, it is characterised in that the preset condition includes:Horizontality.
9. a kind of image processing system, it is characterised in that including:Comparable device, filming apparatus, fixing device and as right will
Seek the image processing apparatus described in 5 to 8 any one;
Wherein, the comparable device, shoots in target for the filming apparatus using the comparable device as target object of reference
In image, so that described image processing unit regard the image of the target object of reference as the benchmark for handling the target image;
The filming apparatus, described image processing unit is sent to for shooting the target image, and by the target image,
The target image includes:The image of the target object of reference and the image of target scene;
The fixing device, for fixing the comparable device and the filming apparatus so that described in the comparable device interval
Filming apparatus preset distance, is fixed in the preset position in front of the camera lens of the filming apparatus, and keeps filling with described shoot
The relative position put is constant.
10. system according to claim 9, it is characterised in that the comparable device includes linker.
11. system according to claim 10, it is characterised in that the linker includes U-shaped linker.
12. system according to claim 10, it is characterised in that the linker is transparent and hollow material, and interior
Portion is marked with colored liquid.
13. system according to claim 12, it is characterised in that the preset position includes at least making the comparable device
Each end liquid level be located at the filming apparatus coverage in position.
14. system according to claim 9, it is characterised in that the fixing device includes:
Position adjusting type modules, for the coverage according to the filming apparatus, adjust the comparable device and the fixed dress
The distance between put.
15. system according to claim 12, it is characterised in that the comparable device includes:
Color control module, the intensity for detecting light adjusts the colored liquid according to the strength control of the light
Color.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410192586.6A CN104601877B (en) | 2014-05-08 | 2014-05-08 | Image processing method, apparatus and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410192586.6A CN104601877B (en) | 2014-05-08 | 2014-05-08 | Image processing method, apparatus and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104601877A CN104601877A (en) | 2015-05-06 |
CN104601877B true CN104601877B (en) | 2017-10-10 |
Family
ID=53127345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410192586.6A Active CN104601877B (en) | 2014-05-08 | 2014-05-08 | Image processing method, apparatus and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104601877B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106027364B (en) * | 2016-04-28 | 2019-11-15 | 北京小米移动软件有限公司 | Method, apparatus and terminal for feedback message |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101848332A (en) * | 2009-03-25 | 2010-09-29 | 鸿富锦精密工业(深圳)有限公司 | Camera system and adjusting method thereof |
CN102024144A (en) * | 2010-11-23 | 2011-04-20 | 上海海事大学 | Container number identification method |
CN102102978A (en) * | 2009-12-16 | 2011-06-22 | Tcl集团股份有限公司 | Handheld terminal, and method and device for measuring object by using same |
CN102724402A (en) * | 2012-06-08 | 2012-10-10 | 中兴通讯股份有限公司 | Shooting device as well as processing method and processing device of shooting image |
CN102932602A (en) * | 2012-11-30 | 2013-02-13 | 天津三星光电子有限公司 | Output control method for pictures photographed by digital camera, and digital camera using same |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9065967B2 (en) * | 2011-09-13 | 2015-06-23 | Verizon Patent And Licensing Inc. | Method and apparatus for providing device angle image correction |
-
2014
- 2014-05-08 CN CN201410192586.6A patent/CN104601877B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101848332A (en) * | 2009-03-25 | 2010-09-29 | 鸿富锦精密工业(深圳)有限公司 | Camera system and adjusting method thereof |
CN102102978A (en) * | 2009-12-16 | 2011-06-22 | Tcl集团股份有限公司 | Handheld terminal, and method and device for measuring object by using same |
CN102024144A (en) * | 2010-11-23 | 2011-04-20 | 上海海事大学 | Container number identification method |
CN102724402A (en) * | 2012-06-08 | 2012-10-10 | 中兴通讯股份有限公司 | Shooting device as well as processing method and processing device of shooting image |
CN102932602A (en) * | 2012-11-30 | 2013-02-13 | 天津三星光电子有限公司 | Output control method for pictures photographed by digital camera, and digital camera using same |
Also Published As
Publication number | Publication date |
---|---|
CN104601877A (en) | 2015-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108093134B (en) | Anti-interference method of electronic equipment and related product | |
CN108366207B (en) | Method and device for controlling shooting, electronic equipment and computer-readable storage medium | |
CN107205116B (en) | Image selection method, mobile terminal, image selection device, and computer-readable storage medium | |
KR20160049759A (en) | Method for scanning neighboring devices and electronic apparatus thereof | |
CN111669208B (en) | Antenna selection method, first electronic device and storage medium | |
US20210195574A1 (en) | Communication link configuration method and device | |
CN106851119B (en) | Picture generation method and equipment and mobile terminal | |
CN107403148B (en) | Iris identification method and related product | |
CN106371086A (en) | Distance measurement method and device | |
WO2017210971A1 (en) | Thermal imaging method and device based on mobile terminal and mobile terminal | |
CN108650442A (en) | Image processing method and device, storage medium, electronic equipment | |
CN111563466A (en) | Face detection method and related product | |
CN113242349B (en) | Data transmission method, electronic equipment and storage medium | |
JP2020509470A (en) | Method, apparatus and non-volatile computer readable medium for image synthesis | |
CN111857793B (en) | Training method, device, equipment and storage medium of network model | |
CN107566654B (en) | Unlocking control method and related product | |
CN107277377A (en) | Photographic method and device | |
EP3249999B1 (en) | Intelligent matching method for filter and terminal | |
CN113473372B (en) | Equipment positioning method and related device | |
EP4040332A1 (en) | Method and apparatus for upgrading an intelligent model and non-transitory computer readable storage medium | |
CN104601877B (en) | Image processing method, apparatus and system | |
CN106488168B (en) | Method and device for switching angles of pictures collected in electronic terminal | |
CN110536067A (en) | Image processing method, device, terminal device and computer readable storage medium | |
CN107613284B (en) | A kind of image processing method, terminal and computer readable storage medium | |
CN109451815A (en) | Minimize the methods, devices and systems of drive test measurement |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20180503 Address after: 100080 Zhichun Road, Haidian District, Haidian District, Beijing, No. 49, 2 layer 224 Patentee after: Tencent Dadi Road (Beijing) Technology Co., Ltd. Address before: 518044 East 403 room, Sai Ge science and Technology Park, Futian District Zhenxing Road, Shenzhen, Guangdong, China, 2 Patentee before: Tencent Technology (Shenzhen) Co., Ltd. |
|
TR01 | Transfer of patent right |