CN102761685B - A kind of method obtaining image and electronic equipment - Google Patents
A kind of method obtaining image and electronic equipment Download PDFInfo
- Publication number
- CN102761685B CN102761685B CN201210046584.7A CN201210046584A CN102761685B CN 102761685 B CN102761685 B CN 102761685B CN 201210046584 A CN201210046584 A CN 201210046584A CN 102761685 B CN102761685 B CN 102761685B
- Authority
- CN
- China
- Prior art keywords
- image
- caching
- mark position
- active area
- meansigma methods
- 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
Abstract
The present invention relates to image technique field, particularly relate to obtain method and the electronic equipment of image, occur in the image in predetermined active area for obtaining and be buffered in image cache district;Judge whether the present image of caching meets predetermined condition with the difference of the image of last caching;When a predetermined condition is satisfied, described present image is defined as final image.Use the method obtaining image and the electronic equipment of embodiment of the present invention offer, by pre-setting active area so that the image composition of acquisition meets user's requirement.And by the pixel changing value of the relatively image of adjacent caching, determine whether the subject of motion comes into active area, thus reduce the difficulty of shooting moving object, improve the success rate of shooting.
Description
Technical field
The present invention relates to image technique field, particularly relate to a kind of method obtaining image and electronic equipment.
Background technology
In prior art, when using the object that the first-class shooting of shooting is kept in motion, due to subject
Position is continually changing, and causes the picture effect after shooting not good enough, and subject is imperfect, composition is poor in generation
Etc. problem.As illustrated in figs. ia and ib, in the picture after shooting, image is likely located at edge or figure
As imperfect.If using infrared ray, laser etc. that subject is positioned, shooting the most again, then becoming
This is higher, and the electricity consumed is bigger.
Therefore, in prior art for the object that is kept in motion obtain image technique there is certain technology
Defect, needs to improve.
Summary of the invention
Embodiments provide a kind of method obtaining image and electronic equipment, shooting motion can be reduced
The difficulty of object, improves the success rate of shooting.
Embodiments providing a kind of method obtaining image, described method is applied to an electronic equipment
In, described electronic equipment at least has image acquisition units and display unit, and described image acquisition units is used for
The scene in acquisition range corresponding to image acquisition units described in Real-time Collection, described display unit is used for will
The scene that described image acquisition units is gathered shows in real time, and described electronic equipment also includes a touch sense
Unit, described touch sensing unit is answered to have touching induction region, described touching induction region and described display
The viewing area of unit overlaps;The method includes:
Touch input operation is obtained by described touch sensing unit;
Track corresponding to described touch input operation is set as mark position;Detection shows in described collection
In the range of whether there is the image of an object by described and described at the region corresponding with described mark position
The region that mark position is corresponding, produces a testing result;
When the instruction of described testing result shows region corresponding with described mark position in described acquisition range
When place has the image of an object by region that described and described mark position is corresponding, produce a triggering and refer to
Order;
According to described triggering command, the image in the described acquisition range that described image acquisition units is gathered
Preserve.
Accordingly, embodiments provide a kind of electronic equipment, including:
Image acquisition units, the scape in the acquisition range corresponding to image acquisition units described in Real-time Collection
As;
Display unit, for showing the scene that described image acquisition units is gathered in real time;
Position acquisition unit, grasps for obtaining touch input by the touch sensing unit of described electronic equipment
Make, and the track corresponding to described touch input operation is set as mark position;
Image detecting element, shows district corresponding with described mark position in described acquisition range for detection
Whether there is the image of an object by region corresponding to described and described mark position at territory, produce a detection
Result;
Instruction generation unit, for when described testing result instruction show in described acquisition range with described mark
There is the image of an object by region corresponding to described and described mark position at region corresponding to note position
Time, produce a triggering command;
Storage unit, for according to described triggering command, described image acquisition units is gathered described in adopt
Image in the range of collection preserves.
Embodiments provide a kind of method obtaining image, including:
The operational order received from touch screen by sensor, determines that on described touch screen predetermined picture shows
Show region;
Obtain and occur in the image in described predetermined active area and be buffered in image cache district;
Judge whether the present image of caching meets predetermined condition with the difference of the image of last caching;
When a predetermined condition is satisfied, described present image is defined as final image.
Accordingly, embodiments provide a kind of electronic equipment, including:
Area determination module, for the operational order received from touch screen by sensor, in described touch
Predetermined active area is determined on screen;
Acquisition module, occurs in the image in described predetermined active area for obtaining and is buffered in picture
Buffer area;
Difference module, whether the difference of present image with the image of last caching for judging caching meets
Predetermined condition;
Determine module, for when a predetermined condition is satisfied, described present image is defined as final image.
Embodiments provide a kind of method obtaining image and electronic equipment, occur in for acquisition pre-
Determine the image in active area and be buffered in image cache district;Judge that the present image of caching is with last
Whether the difference of the image of caching meets predetermined condition;When a predetermined condition is satisfied, by true for described present image
It is set to final image.Use the method obtaining image and the electronic equipment of embodiment of the present invention offer, by advance
Mark position is first set, when the picture position of object has intersection with this cable release position, can be true
Making moving object and enter preferably camera position, film composition now is preferable.And it is possible to by than
The pixel changing value of the image of more adjacent caching, determines whether the subject of motion comes into picture and show
Show region, thus reduce the difficulty of shooting moving object, improve the success rate of shooting.
Accompanying drawing explanation
Fig. 1 a to Fig. 1 b is to shoot the image schematic diagram that moving object is failed in prior art;
Fig. 2 is the method flow schematic diagram obtaining image in the embodiment of the present invention;
Fig. 3 is the structural representation of electronic equipment in the embodiment of the present invention;
Fig. 4 is the method flow schematic diagram obtaining image in the embodiment of the present invention;
Fig. 5 a to Fig. 5 c is the schematic diagram of predetermined active area in the embodiment of the present invention;
Fig. 6 is the method flow schematic diagram obtaining image in another embodiment of the present invention;
Fig. 7 is electronic equipment schematic diagram in another embodiment of the present invention.
Detailed description of the invention
Below in conjunction with each accompanying drawing, the main of embodiment of the present invention technical scheme is realized principle, specific embodiment party
Formula and the beneficial effect that should be able to reach is set forth in.
In order to solve the problem that prior art exists, embodiments provide a kind of side obtaining image
Method, the method is applied in an electronic equipment, and this electronic equipment at least has image acquisition units and display is single
Unit, image acquisition units scene in the acquisition range corresponding to real-time image acquisition collecting unit, aobvious
Show that unit shows in real time for scene image acquisition units gathered, as in figure 2 it is shown, the method
Including:
Step 201, obtain a mark position;
Step 202, detection show whether to have at region corresponding with mark position in acquisition range a thing
The image of body, by the region corresponding with mark position, produces a testing result;
Step 203, when testing result instruction show region corresponding with mark position in described acquisition range
When place has the image of an object by corresponding with mark position region, produce a triggering command;
Step 204, according to triggering command, the image in acquisition range image acquisition units gathered enters
Row preserves.
Concrete, when shooting the object of motion in prior art, final picture is likely to occur that composition is not good enough, figure
As the situation such as imperfect.To this, the scheme that the embodiment of the present invention provides presets mark position, works as thing
Body enters the region that mark position is corresponding, then produce triggering command, preserves present image.Wherein, electronics sets
For also including a touch sensing unit, touch sensing unit touching induction region, touching induction region and display
The viewing area of unit overlaps;When obtaining a mark position, obtain touch input by touch sensing unit and grasp
Make;Track corresponding to touch input operation is set mark position.It is also preferred that the left can also be at display unit
Viewing area in track corresponding to corresponding display touch input operation.From display unit, this track can
Think a line or an airtight region, such as, rectangle or ring etc..This mark position can also be right
Should in the array base palte of display unit multiple pixel cells;The cross section being also can correspond in space.
It is then detected that show that whether having an object at region corresponding with mark position in acquisition range enters
Enter the described region corresponding with mark position, produce a testing result, including: obtain by image acquisition list
The first image in the acquisition range that unit is gathered;Determine position corresponding with mark position on the first image
Whether there occurs change;When position corresponding with mark position on the first image does not changes, produce
One first testing result;When position corresponding with mark position on the first image there occurs change, produce
One second testing result.Wherein it is determined that whether position corresponding with mark position on the first image there occurs
The detailed process changed can be:
(1) can be to judge that the first image and the image of last caching are in position corresponding to mark position
Place, if there is pixel difference.In this case, mark position is positioned at display unit or image acquisition list
In the plane of the viewing area of unit, such as in the image of last caching, the pixel average of a pixel column is
100, in the image of current cache, the pixel average of a pixel column is 500, then may determine that object is
Reach the position of a pixel column.
(2) can be according to sensing unit (such as infrared sensor, remote sensor, the laser in electronic equipment
Localizer etc.) it is identified, determine whether that an object moved enters into the district that mark position is corresponding
Territory, such as, by mark position, the outer space at electronic equipment is determined corresponding cross section, is worked as sensing
Unit has sensed that object enters this cross section, it is determined that position corresponding to mark position there occurs change.
(3) electric current or the voltage that can also show by making array of display carry out on display unit is sentenced
Disconnected.Voltage or the electric current of position corresponding with mark position when judging to show on display unit an image are
No change.Such as, during display image, it is thus necessary to determine that go out the voltage of each pixel cell in array base palte
Value, as during low level, this pixel cell is white etc..So, above-mentioned mark position can correspond to display list
Multiple pixel cells in the array base palte of unit, it is judged that the magnitude of voltage of the pixel cell that mark position is corresponding can obtain
Know whether image there occurs change.
The technical scheme provided based on the invention described above embodiment, use the process of photographing unit by user as a example by,
It is described in detail.After user opens photographing unit, photographing unit is in running order, its image acquisition units
(such as photographic head) starts real-time image acquisition in its acquisition range.Show in real time on the display screen of photographing unit
Acquired image.That is, the image that can collect in acquisition range can be according to the display ratio of display screen
Example shows on described display screen.When user wants a photo of taking pictures, this photo to meet one and lift The Wings
Bird be positioned at the centre of photo.Because the bird lifted The Wings in true environment is a motion ground, existing
There is in technology the mode (that is, continuous trigger is repeatedly taken pictures) needed according to continuous shooting, so existing camera is very
Difficult candid photograph is placed exactly in the central authorities of communication to the bird circled in the air.Structure is being taken by embodiments of the invention user
After figure background, in composition background, need to shoot the local input one mark position (such as, a line) of bird,
As long as user bird by the time flies over this photographing unit and will automatically trigger and take pictures with lifting The Wings afterwards.User is permissible
Inputting at touch screen, touch screen is obtained in that the tracing point that described input is corresponding, by this tracing point labelling
For the mark position in composition background.Institute is aforementioned, and the image that can collect in acquisition range can be according to
The displaying ratio of display screen shows on described display screen, so this mark position can correspond to collect figure
As upper.By above-mentioned first implementation, this camera by graphical analysis it may determine that current gather
First image and the image of last caching are in position corresponding to mark position, if having pixel difference,
So that it is determined that bird is either with or without flying to position in true environment, thus meet the composition requirement to photo of user.
Carry out preserving/storing if it is determined that this camera variant the most automatically triggers to take pictures.Can be found in foregoing description, logical
Cross the second implementation, this camera is integrated with sensing unit, described sensing unit and described image acquisition list
Acquisition range corresponding to unit is corresponding.This camera can control described sensor sensing according to described mark position
Cross section corresponding with described mark position in the acquisition range of described image acquisition units.When in true environment
When bird flies over this cross section, sensor can sense and produce a detection information, and camera is believed according to this detection
Breath automatically triggers and takes pictures and preserve.By the 3rd implementation, described display screen is made up of pel array,
The display of image will apply different voltage/current to corresponding pixel on described pel array, thus allows use
The image of user is seen at family.So, this camera can monitor the pixel correspondence electricity that described mark position is corresponding
Pressure/or current conditions, pixel voltage that the first current image is corresponding with described mark position or electric current
Change, then automatically trigger and take pictures.Be equivalent to current first image and meet the structure to photo of user
Figure requirement.I.e. determine that in true environment, bird is either with or without flying to position.Certainly, user can change mark position
Size, the parameter such as particular location, with satisfied different composition needs.
It is, of course, also possible to make whether to determine position corresponding with mark position on the first image in other ways
There occurs change, do not repeat them here.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of electronic equipment, as it is shown on figure 3,
Including:
Image acquisition units 301, in the acquisition range corresponding to image acquisition units described in Real-time Collection
Scene;
Display unit 302, for showing the scene that described image acquisition units 301 is gathered in real time;
Position acquisition unit 303, for obtaining a mark position;
Image detecting element 304, shows in described acquisition range corresponding with described mark position for detection
Region at whether there is an object enter the described region corresponding with described mark position, produce a detection and tie
Really;
Instruction generation unit 305, for showing in described acquisition range and institute when the instruction of described testing result
State and there is an object when entering described corresponding with described mark position region at the region that mark position is corresponding,
Produce a triggering command;
Storage unit 306, for according to described triggering command, the institute described image acquisition units gathered
The image stated in acquisition range preserves.
It is also preferred that the left image detecting element 304, gathered by described image acquisition units specifically for obtaining
Described acquisition range in the first image;Determine position corresponding with described mark position on described first image
Whether the place of putting there occurs change;When on described first image, the position corresponding with described mark position does not occurs
During change, produce one first testing result;When position corresponding with described mark position on described first image
When place there occurs change, produce one second testing result.
It is also preferred that the left also include:
Diversity judgement module 307, for judging that described first image image with last caching is at described mark
The position that note position is corresponding, if there is pixel difference.
It is also preferred that the left also include:
Touch sensing unit 308, described touch sensing unit touching induction region, described touching induction region
Overlap with the viewing area of described display unit;
Input block 309, for obtaining touch input operation by described touch sensing unit;
Indexing unit 310, for setting described mark position by the track corresponding to described touch input operation.
Pass through foregoing description, it can be seen that use the method obtaining image and the electricity of embodiment of the present invention offer
Subset, by pre-setting mark position, overlaps when the picture position of object has with this cable release position
During part, it may be determined that going out moving object and enter preferably camera position, film composition now is preferable.And
And, the subject of motion by the pixel changing value of the image of relatively adjacent caching, can be determined whether
Come into active area, thus reduce the difficulty of shooting moving object, improve the success of shooting
Rate.
The embodiment of the present invention additionally provides a kind of method obtaining image, and as shown in Figure 4, the method includes:
Step 401, acquisition occur in the image in predetermined active area and are buffered in image cache district;
The difference of step 402, the present image judging caching and the last image cached is the most satisfied predetermined
Condition;
Step 403, when a predetermined condition is satisfied, is defined as final image by described present image.
Concrete, the scheme that the embodiment of the present invention provides is determined the most on the touchscreen one or more pre-
Determine active area, in moving image enters this predetermined active area, determine that current picture is
Whole picture.When having multiple predetermined active area, can meet in arbitrary predetermined active area
During predetermined condition, present image is defined as final image.Can also several predetermined active area in office
When meeting predetermined condition, present image is defined as final image simultaneously.The position of this predetermined active area
Put and be set by the user, such as, predetermined active area is arranged on the upper left side of camera picture, such one
Denier detects that this predetermined active area meets predetermined condition, and now the object space in camera picture is just
Meet composition needs.
Wherein, the operational order received from touch screen by sensor, determine predetermined picture on the touchscreen
Viewing area.Such as, the operation such as user carries out on the touchscreen drawing, encloses, point, formed a rule straight line or
The region that curve, this straight line and/or curve are constituted is predetermined active area.It is also preferred that the left predetermined picture
Viewing area is the closed area being made up of straight line and/or curve, as shown in Figure 5 a, and outmost rectangle
For being constituted a predetermined active area by 4 straight lines in camera picture frame, camera picture frame,
When the moving object " aircraft " of shooting enters into this predetermined active area, i.e. can determine that current picture
For final picture.
In order to determine the scope of predetermined active area, it is also possible to whether detect predetermined active area is
Closed area;If not closed area, then adjacent end points is connected or using camera picture frame as directly
Line is attached, and constitutes closed area.As shown in Fig. 5 b and Fig. 5 c, the lines set as user are not enough to
Constitute closed area, then camera picture frame can be attached as straight line, and the closing that will constitute
The region that in region, area is maximum is as predetermined active area.
After determining predetermined active area, need detection moving object whether to enter into this predetermined picture and show
Region.First, acquisition occurs in the image in predetermined active area and is buffered in image cache district;Sentence
Whether the present image of disconnected caching meets predetermined condition with the difference of the image of last caching.Predetermined when meeting
During condition, present image is defined as final image.Concrete, predetermined condition includes: the current figure of caching
As exceeding threshold value with the pixel change mean of the image of last time caching;And/or the present image and upper of caching
The pixel changing value of the image of secondary caching exceedes the pixel number exceedance mesh threshold value of threshold value.Cache every time
Interval time can be set according to practical situation, such as 2 seconds, 5 seconds etc..
Wherein, predetermined condition is that the present image of caching surpasses with the pixel change mean of the image of last caching
When crossing threshold value, obtain the first meansigma methods and the image institute of last caching of all pixels of present image of caching
There is the second meansigma methods of pixel, obtain the difference of the first meansigma methods and the second meansigma methods as pixel change all
Value;Or obtain the first meansigma methods of all pixels of present image of caching in predetermined active area and upper
Second meansigma methods of all pixels of image once cached, obtains the first meansigma methods and the difference of the second meansigma methods
As pixel change mean.
It is then also possible to final image to be stored picture memory block, and empty image cache district.
It is also preferred that the left when a predetermined condition is satisfied, it is judged that whether predetermined active area is kept in motion;
If being not in kinestate, then present image is defined as final image;If being kept in motion, then continue
Obtain and occur in the image in predetermined active area and be buffered in image cache district.Wherein it is possible to pass through
Induction apparatus judges whether terminal is kept in motion, if terminal is kept in motion, i.e. can determine that this predetermined picture
Viewing area, face is kept in motion along with terminal, such as when user's handheld terminal is in walking states, now
This predetermined active area is kept in motion.Terminal can be judged whether at present by gravity sensor etc.
It is kept in motion.It is, of course, also possible to judge whether predetermined active area is in fortune by other means
Dynamic state, such as, choose an object of reference, when terminal is moved relative to this object of reference, i.e. can determine that predetermined
Active area is kept in motion.
Pass through foregoing description, it can be seen that use the method obtaining image that the embodiment of the present invention provides, logical
Cross and pre-set active area so that the image composition of acquisition meets user's requirement.And by comparing
The pixel changing value of the image of adjacent caching, determines whether the subject of motion comes into picture and show
Region, thus reduces the difficulty of shooting moving object, improves the success rate of shooting.
The method that embodiment of the present invention offer obtains image below by specific embodiment is carried out specifically
Bright, exceed threshold with the pixel change mean that predetermined condition is present image and the image of last caching cached
As a example by value, as shown in Figure 6, comprise the following steps:
Step 601, the operational order received from touch screen by sensor, determine predetermined on the touchscreen
Active area;
Step 602, detect whether predetermined active area is closed area;If not closed area, then
Perform step 603;Otherwise, step 604 is performed;
Here, described predetermined active area is made up of straight line and/or curve.
Step 603, adjacent end points is connected or camera picture frame is attached as straight line, structure
Become closed area;
Step 604, acquisition occur in the image in predetermined active area and are buffered in image cache district;
Step 605, the image of the present image of caching and last caching is compared, obtain pixel and become
Change average;Concrete, obtain the first meansigma methods of all pixels of present image of caching and last caching
Second meansigma methods of all pixels of image, the difference obtaining the first meansigma methods and the second meansigma methods becomes as pixel
Change average;Or
First meansigma methods and upper one of all pixels of present image cached in obtaining predetermined active area
Second meansigma methods of all pixels of image of secondary caching, the difference obtaining the first meansigma methods and the second meansigma methods is made
For pixel change mean.
Wherein, the position of predetermined active area can such as be obtained cache image by user's sets itself
Region, upper left side.Generally, user can need to arrange predetermined picture according to the composition of picture and shows
The position in region and size.
Step 606, judge whether pixel change mean exceedes threshold value;If so, step 607 is performed;Otherwise
Perform step 604;This threshold value can be empirical value, it is also possible to be set as required by user.
Step 607, judge whether predetermined active area is kept in motion;If being not in kinestate,
Perform step 608;If being kept in motion, then perform step 604;
Step 608, present image is defined as final image;
Step 609, final image is stored picture memory block, and empty image cache district.
Pass through foregoing description, it can be seen that use the method obtaining image that the embodiment of the present invention provides, logical
Cross and pre-set active area so that the image composition of acquisition meets user's requirement.And by comparing
The pixel changing value of the image of adjacent caching, determines whether the subject of motion comes into picture and show
Region, thus reduces the difficulty of shooting moving object, improves the success rate of shooting.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of electronic equipment, as it is shown in fig. 7,
This equipment includes:
Acquisition module 701, occurs in the image in predetermined active area for obtaining and is buffered in picture
Buffer area;
Difference module 702, whether the difference of the image that the present image and last time for judging caching caches
Meet predetermined condition;
Determine module 703, for when a predetermined condition is satisfied, described present image is defined as final image.
It is also preferred that the left this equipment also includes: area determination module 704, for being connect from touch screen by sensor
The operational order received, determines described predetermined active area on described touch screen.
It is also preferred that the left this equipment also includes: detection module 705, it is used for detecting described predetermined active area
Whether it is closed area;If not closed area, then adjacent end points is connected or by camera picture frame
It is attached as straight line, constitutes closed area;Described predetermined active area is by straight line and/or curve structure
Become.
It is also preferred that the left described difference module 702, specifically for the present image and upper that predetermined condition is caching
When the pixel change mean of the image of secondary caching exceedes threshold value, obtain all pixels of present image of described caching
The first meansigma methods and second meansigma methods of all pixels of image of described last caching, obtain described first
The difference of meansigma methods and the second meansigma methods is as pixel change mean;Or obtain in predetermined active area
First meansigma methods of all pixels of present image of described caching and all pictures of image of described last caching
Second meansigma methods of element, obtains the difference of described first meansigma methods and the second meansigma methods as pixel change all
Value.
It is also preferred that the left this equipment also includes:
Memory module 706, for storing picture memory block by described final image;
Empty module 707, after final image is stored picture memory block by described memory module, empty
Described image cache district.
It is also preferred that the left this equipment also includes:
Judge module 708, when being used for meeting predetermined condition, it is judged that whether shown predetermined active area is located
In kinestate;If being not in kinestate, then described present image is defined as final image;If being in
Kinestate, then the continuation of notice acquisition module 701 obtains and occurs in the image in predetermined active area also
It is buffered in image cache district.
Wherein, the function of above-mentioned module can use corresponding hardware to realize, such as:
Described sensor, for the operational order that touch screen receives is delivered to processor, determines predetermined picture
Viewing area, face;
Described photographic head, delays for obtaining to occur in the image in predetermined active area and be buffered in picture
Deposit district;
Described processor is the fullest with the difference of the image of last caching for comparing the present image of caching
Foot predetermined condition;When a predetermined condition is satisfied, described present image is defined as final image.
Induction apparatus, is used for judging whether shown predetermined active area is kept in motion.
Pass through foregoing description, it can be seen that use the method obtaining image and the electricity of embodiment of the present invention offer
Subset, by pre-setting cable release, when position and this cable release position of moving object have coincidence part
Timesharing, it may be determined that going out moving object and enter preferably camera position, film composition now is preferable.Further,
The subject of motion can have been determined the most by the pixel changing value of the relatively image of adjacent caching
Entrance picture shows.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to disk memory,
CD-ROM, optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding
The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating
The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one
The equipment of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produce and include the manufacture of commander equipment, this commander equipment realizes in one flow process or multiple of flow chart
The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know base
This creativeness concept, then can make other change and amendment to these embodiments.So, appended right is wanted
Ask and be intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention
Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (17)
1. the method obtaining image, it is characterised in that described method is applied in an electronic equipment,
Described electronic equipment at least has image acquisition units and display unit, and described image acquisition units is in real time
Gathering the scene in the acquisition range corresponding to described image acquisition units, described display unit is for by described
The scene that image acquisition units is gathered shows in real time, and described electronic equipment also includes a touch sensible list
Unit, described touch sensing unit has touching induction region, described touching induction region and described display unit
Viewing area overlap;The method includes:
Touch input operation is obtained by described touch sensing unit;
Track corresponding to described touch input operation is set as mark position;
Detection shows whether to have at region corresponding with described mark position in described acquisition range a thing
Body enters the described region corresponding with described mark position, produces a testing result;
When the instruction of described testing result shows region corresponding with described mark position in described acquisition range
When place has region corresponding with described mark position described in an object entrance, produce a triggering command;
According to described triggering command, the image in the described acquisition range that described image acquisition units is gathered
Preserve.
2. the method for claim 1, it is characterised in that described detection shows at described collection model
Whether there is at region corresponding with described mark position in enclosing an object and enter described and described mark position
Corresponding region, produces a testing result, including:
Obtain the first image in the described acquisition range gathered by described image acquisition units;
Determine whether position corresponding with described mark position on described first image there occurs change;
When the position corresponding with described mark position does not changes on described first image, produce one the
One testing result;
When the position corresponding with described mark position there occurs change on described first image, produce one the
Two testing results.
3. method as claimed in claim 2, it is characterised in that described determine on described first image with
Whether position corresponding to described mark position there occurs change, including:
Judge that described first image and the image of last caching, in position corresponding to described mark position, are
No have pixel difference.
4. an electronic equipment, it is characterised in that including:
Image acquisition units, the scape in the acquisition range corresponding to image acquisition units described in Real-time Collection
As;
Display unit, for showing the scene that described image acquisition units is gathered in real time;
Position acquisition unit, grasps for obtaining touch input by the touch sensing unit of described electronic equipment
Make, and the track corresponding to described touch input operation is set as mark position;;
Image detecting element, shows district corresponding with described mark position in described acquisition range for detection
Whether there is at territory an object and enter the described region corresponding with described mark position, produce a testing result;
Instruction generation unit, for when described testing result instruction show in described acquisition range with described mark
When there is at the region that note position is corresponding region corresponding with described mark position described in an object entrance, produce
One triggering command;
Storage unit, for according to described triggering command, described image acquisition units is gathered described in adopt
Image in the range of collection preserves.
5. electronic equipment as claimed in claim 4, it is characterised in that described image detecting element, tool
The body the first image in obtaining the described acquisition range gathered by described image acquisition units;Determine
Whether position corresponding with described mark position on described first image there occurs change;When described first figure
When not changing as position that upper and described mark position is corresponding, produce one first testing result;Work as institute
State position corresponding with described mark position on the first image when there occurs change, produce one second detection knot
Really.
6. electronic equipment as claimed in claim 5, it is characterised in that also include:
Diversity judgement module, for judging that described first image image with last caching is at described marker bit
Put the position of correspondence, if there is pixel difference.
7. the method obtaining image, it is characterised in that the method includes:
The operational order received from touch screen by sensor, determines that on described touch screen predetermined picture shows
Show region;
Obtain and occur in the image in described predetermined active area and be buffered in image cache district;
Judge whether the present image of caching meets predetermined condition with the difference of the image of last caching;
When a predetermined condition is satisfied, described present image is defined as final image.
8. method as claimed in claim 7, it is characterised in that described predetermined condition includes:
The present image of caching exceedes threshold value with the pixel change mean of the image of last caching;And/or
The pixel changing value of the image that the present image of caching and last time cache exceedes the pixel number of threshold value
Mesh exceedes quantity threshold.
9. method as claimed in claim 7 or 8, it is characterised in that the method also includes:
Detect whether described predetermined active area is closed area;
If not during closed area, adjacent end points is connected or camera picture frame is carried out as straight line
Connect, constitute closed area;
Wherein, described predetermined active area is made up of straight line and/or curve.
10. method as claimed in claim 8, it is characterised in that described predetermined condition is the current of caching
When the pixel change mean of the image that image and last time cache exceedes threshold value, the method also includes:
Obtain the first meansigma methods and the figure of described last caching of all pixels of present image of described caching
As the second meansigma methods of all pixels, obtain the difference of described first meansigma methods and the second meansigma methods as pixel
Change mean;Or
Obtain in described predetermined active area the first of all pixels of present image of described caching average
Second meansigma methods of all pixels of image of value and described last caching, obtains described first meansigma methods and the
The difference of two meansigma methodss is as pixel change mean.
11. methods as claimed in claim 7, it is characterised in that described present image is defined as finally
After image, the method also includes: described final image stores picture memory block, and empties described figure
Sheet buffer area.
12. methods as claimed in claim 7, it is characterised in that when a predetermined condition is satisfied, also include:
Judge whether described predetermined active area is kept in motion;
If being not in kinestate, then described present image is defined as final image;
If being kept in motion, then continue to obtain occur in the image in predetermined active area and be buffered in
Image cache district.
13. 1 kinds of electronic equipments, it is characterised in that including:
Area determination module, for the operational order received from touch screen by sensor, in described touch
Predetermined active area is determined on screen;
Acquisition module, occurs in the image in described predetermined active area for obtaining and is buffered in picture
Buffer area;
Difference module, whether the difference of present image with the image of last caching for judging caching meets
Predetermined condition;
Determine module, for when a predetermined condition is satisfied, described present image is defined as final image.
14. electronic equipments as claimed in claim 13, it is characterised in that also include:
Detection module, is used for detecting whether described predetermined active area is closed area;If not closing
During region, adjacent end points connected or camera picture frame is attached as straight line, constituting and close
Region;Wherein, described predetermined active area is made up of straight line and/or curve.
15. electronic equipments as claimed in claim 13, it is characterised in that described difference module, specifically
Threshold is exceeded for the pixel change mean that predetermined condition is present image and the image of last caching cached
During value, obtain the first meansigma methods and the figure of described last caching of all pixels of present image of described caching
As the second meansigma methods of all pixels, obtain the difference of described first meansigma methods and the second meansigma methods as pixel
Change mean;Or obtain all pixels of present image of described caching in described predetermined active area
Second meansigma methods of all pixels of image of the first meansigma methods and described last caching, obtains described first flat
The difference of average and the second meansigma methods is as pixel change mean.
16. electronic equipments as claimed in claim 13, it is characterised in that also include:
Memory module, for storing picture memory block by described final image;
Empty module, after final image is stored picture memory block by described memory module, empty described
Image cache district.
17. electronic equipments as claimed in claim 13, it is characterised in that also include:
Judge module, when being used for meeting predetermined condition, it is judged that whether shown predetermined active area is in fortune
Dynamic state;If being not in kinestate, then described present image is defined as final image;If being in motion
State, then the continuation of notice acquisition module obtains and occurs in the image in predetermined active area and be buffered in figure
Sheet buffer area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210046584.7A CN102761685B (en) | 2012-02-24 | 2012-02-24 | A kind of method obtaining image and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210046584.7A CN102761685B (en) | 2012-02-24 | 2012-02-24 | A kind of method obtaining image and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102761685A CN102761685A (en) | 2012-10-31 |
CN102761685B true CN102761685B (en) | 2016-08-17 |
Family
ID=47056000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210046584.7A Active CN102761685B (en) | 2012-02-24 | 2012-02-24 | A kind of method obtaining image and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102761685B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104349131B (en) * | 2013-08-09 | 2018-12-14 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN106027913B (en) * | 2016-07-15 | 2019-06-18 | 深圳市金立通信设备有限公司 | A kind of photographic method and terminal |
CN107222661A (en) * | 2017-06-26 | 2017-09-29 | 努比亚技术有限公司 | A kind of method and corresponding system, terminal device for automatically snapping moving object |
CN109344715A (en) * | 2018-08-31 | 2019-02-15 | 北京达佳互联信息技术有限公司 | Intelligent composition control method, device, electronic equipment and storage medium |
CN113362270A (en) * | 2020-03-05 | 2021-09-07 | 西安诺瓦星云科技股份有限公司 | Method and device for monitoring abnormal display of display screen picture |
CN113784040B (en) * | 2021-08-05 | 2023-11-14 | 维沃移动通信(杭州)有限公司 | Shooting method, shooting device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1431783A (en) * | 2003-01-30 | 2003-07-23 | 张健 | Real time monitoring and transferring methods of visible home safety and protection system |
JP2006121761A (en) * | 2006-01-30 | 2006-05-11 | Casio Comput Co Ltd | Photographing method and photographic device |
CN1885912A (en) * | 2005-06-24 | 2006-12-27 | 索尼株式会社 | Imaging device |
CN101515998A (en) * | 2008-02-20 | 2009-08-26 | 索尼株式会社 | Image processing apparatus, image processing method, and program |
-
2012
- 2012-02-24 CN CN201210046584.7A patent/CN102761685B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1431783A (en) * | 2003-01-30 | 2003-07-23 | 张健 | Real time monitoring and transferring methods of visible home safety and protection system |
CN1885912A (en) * | 2005-06-24 | 2006-12-27 | 索尼株式会社 | Imaging device |
JP2006121761A (en) * | 2006-01-30 | 2006-05-11 | Casio Comput Co Ltd | Photographing method and photographic device |
CN101515998A (en) * | 2008-02-20 | 2009-08-26 | 索尼株式会社 | Image processing apparatus, image processing method, and program |
Also Published As
Publication number | Publication date |
---|---|
CN102761685A (en) | 2012-10-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102761685B (en) | A kind of method obtaining image and electronic equipment | |
CN108200334B (en) | Image shooting method and device, storage medium and electronic equipment | |
CN107509038A (en) | A kind of image pickup method and mobile terminal | |
KR101984778B1 (en) | Method for multiple image cooperation on diagnosis exterior wall of structure and apparatus for performing the method | |
CN108839016A (en) | Robot method for inspecting, storage medium, computer equipment and crusing robot | |
CN110428410A (en) | Eyeground medical image processing method, device, equipment and storage medium | |
CN108989678A (en) | A kind of image processing method, mobile terminal | |
CN104299284B (en) | Indoor transformer station track tour-inspection system capable of automatically positioning and grabbing equipment image, host and method | |
CN110049185A (en) | Image processing method and terminal device | |
CN110308839A (en) | A kind of file management method and terminal device | |
CN104376323B (en) | A kind of method and device for determining target range | |
CN106385561A (en) | Public place video monitoring platform | |
JP2008287691A5 (en) | ||
CN106846304A (en) | Electrical equipment detection method and device based on infrared detection | |
CN206313533U (en) | Distribution monitor device | |
CN109858319A (en) | Image processing equipment and control method and non-transitory computer-readable storage media | |
CN109327568A (en) | A kind of method and mobile terminal switching camera | |
CN112001963A (en) | Fire fighting channel investigation method, system and computer equipment | |
JP2021060888A (en) | Inspection method of utility work and inspection system of utility work | |
CN108021345A (en) | A kind of image browsing method, system, equipment and computer-readable storage medium | |
CN108520727A (en) | Screen luminance adjustment method and mobile terminal | |
CN109272504A (en) | The detection of vehicle bumps defect, retroactive method, apparatus and system | |
CN107958222A (en) | A kind of pavement detection method, apparatus and terminal | |
CN113449617A (en) | Track safety detection method, system, device and storage medium | |
CN108376481A (en) | Collecting vehicle information method, apparatus and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |