Disclosure of Invention
The technical problem to be solved by the present invention is to provide an electronic device and a method for acquiring an image in a specific area, which can capture an image in a specific area without manually adjusting a focal length or adjusting to an auto-focus mode by a Zoom key or without requiring a user to walk back and forth to adjust the distance to acquire an image in a specific area.
To solve the above technical problem, embodiments of the present invention provide the following technical solutions:
in one aspect, an electronic device is provided, including:
the image acquisition module is used for acquiring an image of an acquisition area;
the display module is used for displaying the image of the acquisition area;
a first acquisition module, configured to acquire a selected area image in an image displayed on the display module, where the selected area image is a part of the image displayed on the display module;
and the second acquisition module is used for acquiring the image information corresponding to the selected area image according to the selected area image.
Preferably, the first obtaining module is specifically configured to obtain the image of the selected area in the current image displayed on the display module, where the image of the selected area is a part of the current image displayed on the display module.
Preferably, the display module is a flexible screen;
the first obtaining module is specifically configured to manually set a frame of the flexible screen to obtain a selected area image in an image displayed on the display module or manually determine the selected area image in the flexible screen.
Preferably, the display module is a touch screen;
the first acquisition module manually determines the selected area image in the touch screen.
Preferably, the first acquiring module is specifically configured to determine a selected area in the acquisition area, and acquire a corresponding selected area image of the selected area on the display module, where the selected area image is a part of an image displayed on the display module.
Preferably, the second obtaining module is specifically configured to automatically adjust the selected area image corresponding to the selected area on the display module according to a distance between the image acquisition module and an eye of an operator, and obtain image information corresponding to the selected area image.
Preferably, the third obtaining module is configured to obtain the number of the glasses worn by the operator;
and the second acquisition module corrects the distance according to the degree of the glasses to obtain the corrected distance, automatically adjusts the selected area image corresponding to the selected area on the display module according to the corrected distance, and acquires the image information corresponding to the selected area image.
Preferably, the second obtaining module specifically adjusts the focal length of the lens of the image acquisition module by setting an optical focal length of the lens or by a digital interpolation mode according to the size of the selected area image, and obtains image information corresponding to the selected area image at the adjusted focal length.
In another aspect, a method for acquiring an image in a specific area is provided, and an electronic device is applied, the electronic device having a display module, the method includes:
collecting an image of a collection area;
displaying an image of the acquisition area on the display module;
acquiring a selected area image in an image displayed on the display module, wherein the selected area image is a part of the image displayed on the display module;
and acquiring image information corresponding to the selected area image according to the selected area image.
Preferably, the step of acquiring a selected area image in the image displayed on the display module, where the selected area image is a part of the image displayed on the display module, specifically includes:
acquiring the selected area image in the current image displayed on the display module, wherein the selected area image is a part of the current image displayed on the display module.
Preferably, the step of acquiring a selected area image in the image displayed on the display module, where the selected area image is a part of the image displayed on the display module, specifically includes:
determining a selected area in the acquisition area, and acquiring a corresponding selected area image of the selected area on a display module, wherein the selected area image is a part of an image displayed on the display module.
Preferably, the step of obtaining the image information corresponding to the selected area image according to the selected area image specifically includes:
and adjusting the focal length of the lens of the image acquisition module by setting the optical focal length of the lens or in a digital interpolation mode according to the size of the image of the selected area, and acquiring image information corresponding to the image of the selected area under the adjusted focal length.
The embodiment of the invention has the following beneficial effects:
according to the scheme, the selected area image in the image displayed on the display module is obtained, the selected area image is a part of the image displayed on the display module, the image information corresponding to the selected area image is obtained according to the selected area image, the focal length does not need to be manually adjusted through a Zoom key or adjusted to an automatic focusing mode, and the user does not need to walk back and forth to adjust the distance so as to obtain the image in the determined area, so that the image in the determined area is shot, namely the selected area image is shot, and the operation is simple and convenient.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention aims at the problem that the operation is troublesome because the electronic equipment with the shooting function needs to manually adjust the focal length or adjust the focal length to an automatic focusing mode for shooting through a Zoom key in the prior art, and provides the electronic equipment and the method for acquiring the image in the determined area.
As shown in fig. 1, an electronic device 10 according to an embodiment of the present invention includes:
the image acquisition module 11 is used for acquiring an image of an acquisition area;
a display module 12, configured to display an image of the acquisition area;
a first acquiring module 13, configured to acquire a selected area image in the image displayed on the display module 12, where the selected area image is a part of the image displayed on the display module 12;
and a second obtaining module 14, configured to obtain, according to the selected area image, image information corresponding to the selected area image.
According to the scheme of the embodiment of the invention, the selected area image in the image displayed on the display module is obtained, the selected area image is a part of the image displayed on the display module, the image information corresponding to the selected area image is obtained according to the selected area image, the focal length is not required to be manually adjusted through a Zoom key or adjusted to an automatic focusing mode, and the image in the determined area is not required to be obtained by a user walking back and forth to adjust the distance, so that the image in the determined area is shot, namely the selected area image is shot, and the operation is simple and convenient.
On the basis of the electronic device shown in fig. 1, the first embodiment of the electronic device can achieve the following effects:
in this first embodiment, the image capturing module 11 is also used for capturing an image of a capturing area;
the display module 12 is also used for displaying the image of the acquisition area; wherein,
the first obtaining module 13 is specifically configured to obtain the selected area image from the current image displayed on the display module, where the selected area image is a part of the current image displayed on the display module;
the second obtaining module 14 obtains image information corresponding to the selected area image according to the selected area image.
The specific implementation effect is shown in fig. 2 and fig. 3, wherein, as shown in fig. 2, the display module of the electronic device may be a flexible screen; FIG. 3 is a diagram of the unfolding effect of the flexible screen;
the first acquisition module is used for setting a frame of the flexible screen in a manual mode to obtain a selected area image in an image displayed on the display module or determining the selected area image in the flexible screen in the manual mode; wherein, the frame for manually setting the flexible screen may specifically be: manually pulling the border of the flexible screen or manually retracting the border of the flexible screen or manually folding the border of the flexible screen, etc.; the manual determination of the image of the selected area in the flexible screen may specifically be: an image area which is the image area which the user currently wants to obtain is determined in the flexible screen through other input devices (the image area can be closed or not), so that the selected area image is obtained.
Of course, the display module of the electronic device may also be a touch screen;
the first acquisition module manually determines the selected area image in the touch screen. The manual determination of the selected area image in the touch screen may specifically be: a closed image area, but also an unclosed image area, is drawn on the touch screen to determine the selected area image.
The second acquisition module acquires image information corresponding to the selected area image according to the selected area image; specifically, the following may be mentioned: and adjusting the focal length of the lens of the image acquisition module by setting the optical focal length of the lens or in a digital interpolation mode according to the size of the image of the selected area, and acquiring image information corresponding to the image of the selected area under the adjusted focal length.
According to the embodiment of the invention, the electronic equipment can automatically adjust the focal length of the lens by manually framing the desired image (namely the image of the selected area) on the flexible screen to obtain the image information corresponding to the image of the selected area, so that the framed effect is realized, the focal length is not required to be manually adjusted through a Zoom key or adjusted to an automatic focusing mode, and the user is not required to walk back and forth to adjust the distance so as to obtain the image in the determined area, so that the user operation is more convenient and simpler.
On the basis of the electronic device shown in fig. 1, the second embodiment of the electronic device may implement the function of determining the size of the selected area in the acquisition area, so as to obtain an image of the selected area corresponding to the selected area:
in this second embodiment, the image capturing module 11 is also used for capturing an image of a capturing area;
the display module 12 is also used for displaying the image of the acquisition area; wherein,
the first obtaining module 13 is specifically configured to determine a selected area in the acquisition area, and obtain a corresponding selected area image of the selected area on a display module, where the selected area image is a part of an image displayed on the display module;
the second obtaining module 14 obtains image information corresponding to the selected area image according to the selected area image.
The specific implementation effect is as shown in fig. 4, wherein the electronic device is placed in front of the eyes of the operator, and the second obtaining module is specifically configured to automatically adjust the image of the selected area corresponding to the selected area on the display module according to the distance between the image acquisition module and the eyes of the operator, and obtain the image information corresponding to the image of the selected area.
The farther the distance between the image acquisition module and the eyes of the operator, the larger the acquisition area seen by the operator; the closer the distance between the image acquisition module and the eyes of an operator is, the smaller the acquisition area seen by the operator is; however, in the acquisition area, a selected area is firstly determined, and the selected area is mapped to a selected area image corresponding to a display module of the electronic device, at this time, the distance between the eyes of the operator and the image acquisition module can be further acquired, and the selected area image corresponding to the selected area on the display module is automatically adjusted according to the distance, so that the image information corresponding to the acquired selected area image is clear and meets the pixel requirement of the electronic device; the manner of acquiring the distance between the eyes of the operator and the image acquisition module may be: the lens direction of the image acquisition module is adjusted to be towards the direction of an operator, the face image of the operator is shot, the number of pixels contained in pupil information of the operator is obtained, and the distance between the pupil and the image acquisition module is calculated according to the number of the pixels.
Further, in this second embodiment, the electronic device may further include:
the third acquisition module is used for acquiring the degree of the glasses worn by the operator; if the distance between the image acquisition module and the glasses is obtained, and the degree number of the glasses worn by the operator is obtained by utilizing the distance between the image acquisition module and the eyes of the operator and the distance difference between the image acquisition module and the glasses;
and the second acquisition module corrects the distance according to the degree of the glasses to obtain the corrected distance, automatically adjusts the selected area image corresponding to the selected area on the display module according to the corrected distance, and acquires the image information corresponding to the selected area image.
After the second obtaining module automatically adjusts the image of the selected area, the focal length of the lens of the image acquisition module is adjusted by setting the optical focal length of the lens or by a digital interpolation mode according to the size of the image of the selected area, and the image information corresponding to the image of the selected area is obtained under the adjusted focal length.
The scheme of the embodiment also determines the selected area of the frame in the acquisition area, finally obtains the image of the selected area corresponding to the selected area on the display module, and obtains the image information corresponding to the image of the selected area, and does not need to manually adjust the focal length or adjust to an automatic focusing mode through a Zoom key or need not to obtain the image in the determined area by the user walking back and forth to adjust the distance, so that the user operation is more convenient and simpler.
The first embodiment and the second embodiment both determine the shooting area in the most direct manner, so that the effect of shooting in real time is achieved, the focal length does not need to be manually adjusted through Zoom keys or adjusted to an automatic focusing mode, and the user does not need to walk back and forth to adjust the distance so as to obtain the image in the determined area, so that the user operation is more convenient and simpler.
As shown in fig. 5, an embodiment of the present invention further provides a method for acquiring an image in a specific area, where an electronic device is applied, and the electronic device has a display module, and the method includes:
step 51, collecting an image of a collection area;
step 52, displaying the image of the acquisition area on the display module;
step 53, acquiring a selected area image in the image displayed on the display module, wherein the selected area image is a part of the image displayed on the display module;
and step 54, acquiring image information corresponding to the selected area image according to the selected area image.
In the above method, step 53 may specifically be:
step 531, obtaining the selected area image from the current image displayed on the display module, where the selected area image is a part of the current image displayed on the display module.
Step 531, in combination with steps 51, 52, and 54, corresponds to the first embodiment of the electronic device, and the implementation effect is as shown in fig. 2 and fig. 3, and the same technical effect can be achieved, which is not described herein again.
Wherein, the step 53 of the method may further specifically be:
step 532, determining a selected area in the capturing area, and acquiring a corresponding selected area image of the selected area on the display module, wherein the selected area image is a part of the image displayed on the display module.
This step 532 is combined with the above steps 51, 52, and 54, and corresponds to the above first embodiment of the electronic device, and the implementation effect is as shown in fig. 4, and the same technical effect can also be achieved, which is not described herein again.
In all the above embodiments, step 54 may also be implemented as follows:
and adjusting the focal length of the lens of the image acquisition module by setting the optical focal length of the lens or in a digital interpolation mode according to the size of the image of the selected area, and acquiring image information corresponding to the image of the selected area under the adjusted focal length.
The method embodiment of the invention also obtains the image information corresponding to the selected area image by obtaining the selected area image in the image displayed on the display module, wherein the selected area image is a part of the image displayed on the display module, and the image information corresponding to the selected area image is obtained according to the selected area image, and the shooting of the image in the determined area, namely the shooting of the selected area image, is realized without manually adjusting the focal length or adjusting the focal length to an automatic focusing mode through a Zoom key or without the need of the user to walk back and forth to adjust the distance so as to obtain the image in the determined area.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.