Object magnification shooting control method and system
By using the target selection box and the number of finger touches on the terminal device to control the camera focus adjustment, the problem of image magnification beyond the effective shooting area in the existing technology is solved, and accurate and controllable magnification of object images is achieved.
Patent Information
- Application Number
- CN202211101295.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-09
AI Technical Summary
When the existing terminal equipment is zooming in for shooting, the user controls the image zooming by moving the finger in reverse direction, which can easily cause the image to exceed the effective shooting area of the camera, causing improper operation and affecting the shooting effect.
The amplified display of the object image is controlled through the target selection box and the number of finger touches generated by the user on the touch screen. The camera's focal length adjustment amount and initial focus information are used to ensure that the image is always amplified within the effective shooting area, limiting the minimum Boundary distance to prevent going out of range.
It achieves accurate and controllable zoom-in shooting of object images, ensuring that the image is always zoomed in within the effective area covered by the camera, avoiding improper operation problems in the existing technology, and ensuring effective zoom-in shooting operations.
Smart Images

Figure CN115567771B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photography technology, and in particular to a method and system for controlling object magnification and shooting. Background Art
[0002] Existing terminal devices generally have a zooming photography function. When a user wants to zoom in on an image of an object within an effective shooting area covered by a camera, the existing operation method is to use two fingers of the user to move in the opposite direction on the touch screen with the position of the object image as the starting point. In other words, the degree of magnification of the object image is completely controlled by the reverse movement distance between the two fingers of the user, which can easily magnify the object image to exceed the effective shooting area covered by the camera, thereby affecting the zooming photography operation of the object image. Summary of the invention
[0003] The present invention provides an object magnification shooting control method and system to solve one or more technical problems existing in the prior art and at least provide a beneficial choice or create conditions.
[0004] An embodiment of the present invention provides a method for controlling object magnification shooting, which is applied to a terminal device provided with a touch display screen and a camera, and the method includes:
[0005] Get the camera mode selection information input by the user;
[0006] When it is recognized that the user selects the zoom shooting mode, a target selection frame generated by the user's finger on the touch screen is obtained, and then the target selection frame and the image of the object selected by the target selection frame are zoomed in and displayed within the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection frame;
[0007] When the image of the object selected by the target selection box has been enlarged and displayed until it meets the user's needs, a first photo-taking instruction input by the user is obtained and the camera is controlled to execute a photo-taking action.
[0008] Furthermore, the step of obtaining a target selection box generated by the user's finger on the touch display screen includes:
[0009] The initial touch position of the user's finger on the touch display screen is obtained, and then a target selection frame centered on the initial touch position is generated according to a set frame size.
[0010] Furthermore, the enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box includes:
[0011] Obtaining a preset single focal length adjustment amount associated with the camera;
[0012] Each time the user's finger touches the target selection box, the camera is controlled to adjust its lens to the center of the target selection box, and then the target selection box and the image of the object selected by it are synchronously enlarged and displayed within the effective shooting area covered by the camera according to the single focal length adjustment amount.
[0013] Furthermore, the enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box further includes:
[0014] After each enlargement and adjustment of the target selection frame and the object image selected by the frame, obtaining the minimum boundary distance between the enlarged and adjusted target selection frame and the effective shooting area;
[0015] Determine whether the minimum boundary distance is less than a preset value; if so, generate an interface warning message and refuse to execute the next zoom-in adjustment operation; if not, allow the next zoom-in adjustment operation to be executed.
[0016] Furthermore, the enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box further includes:
[0017] Obtaining initial focal length information associated with the camera;
[0018] Before any zooming and adjustment of the target selection box and the object image selected by it, if it is detected that the user's finger is not touching the target selection box, the camera is controlled to adjust its lens to the center of the target selection box, and then the target selection box and the object image selected by it are restored to the original normal display state according to the initial focal length information.
[0019] Furthermore, the method further includes: when it is recognized that the user selects the regular photographing mode, obtaining a second photographing instruction input by the user and controlling the camera to execute a photographing action.
[0020] Furthermore, when the terminal device is in the zoomed-in photographing mode, the method further includes:
[0021] A first mode switching instruction input by a user is acquired in real time, and then the zoomed-in photographing mode is switched to the normal photographing mode according to the first mode switching instruction.
[0022] Furthermore, when the terminal device is in the conventional photographing mode, the method further includes:
[0023] A second mode switching instruction input by the user is obtained in real time, and then the normal photographing mode is switched to the enlarged photographing mode according to the second mode switching instruction.
[0024] In addition, an embodiment of the present invention further provides an object magnification shooting control system, which is applied to a terminal device provided with a touch display screen and a camera, and the system includes:
[0025] A mode acquisition module is used to obtain the camera mode selection information input by the user;
[0026] The area magnification module is used to obtain the target selection frame generated by the user's finger on the touch screen when recognizing that the user selects the magnified shooting mode, and then magnify and display the target selection frame and the object image selected by the target selection frame in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection frame;
[0027] The first photographing module is used to obtain a first photographing instruction input by a user and control the camera to execute a photographing action when the image of the object selected by the target selection box has been enlarged and displayed until it meets the user's needs.
[0028] Furthermore, the system also includes: a second photographing module, which is used to obtain a second photographing instruction input by the user and control the camera to perform a photographing action when it is recognized that the user selects a regular photographing mode.
[0029] The present invention has at least the following beneficial effects: by enlarging and displaying the target selection box and the object image selected by the target selection box according to the number of times the user's finger touches the target selection box, it is more accurate and controllable than the prior art that uses the reverse movement distance between two fingers to determine the degree of enlargement of the object image. By limiting the target selection box to always remain within the effective shooting area covered by the camera for enlarged display, the improper operation problem existing in the prior art can be overcome, thereby ensuring that the selected object image is effectively enlarged and photographed. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation to the technical solution of the present invention.
[0031] Figure 1 is a flow chart of a method for controlling object magnification and shooting in an embodiment of the present invention;
[0032] Figure 2 It is a schematic diagram of the structure of an object magnification and shooting control system in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0034] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0035] Please refer to Figure 1 , Figure 1 1 is a flow chart of a method for controlling object magnification and shooting provided by an embodiment of the present invention. The method is applied to a terminal device provided with a touch display screen and a camera, and includes the following steps:
[0036] Step 110: Obtaining photographing mode selection information input by the user;
[0037] Step 120, determining whether the photographing mode selection information indicates that the user has selected the zoom photographing mode; if so, executing step 130; if not, indicating that the photographing mode selection information indicates that the user has selected the normal photographing mode, jumping to executing step 150;
[0038] Step 130, obtaining a target selection frame generated by the user's finger on the touch screen, and then enlarging and displaying the target selection frame and the object image selected by the target selection frame in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection frame;
[0039] Step 140: when the image of the object selected by the target selection box has been enlarged and displayed until it meets the user's needs, a first photographing instruction input by the user is obtained and the camera is controlled to execute a photographing action;
[0040] Step 150: Obtain a second photographing instruction input by the user and control the camera to execute a photographing action.
[0041] In an embodiment of the present invention, the terminal device is actually loaded with a camera application software so that it has a photo-taking function. The specific implementation process of the above step 110 is: when the user opens the camera application software through the touch screen, the touch screen will preferentially pop up a selection interface after sensing the opening action, and two options, namely, a zoomed photo mode and a normal photo mode, are provided on the selection interface. Only when the user selects an option, the camera application software can obtain the photo-taking mode selection information input by the user and formally enable the corresponding photo-taking function.
[0042] It should be noted that, according to the scene picture within the effective shooting area covered by the camera selected by the user, the enlarged shooting mode is to limit the object image selected by the user in the scene picture to the effective shooting area and then perform the shooting operation after adjustable magnification, and the regular shooting mode is to directly perform the shooting operation on the scene picture.
[0043] In the embodiment of the present invention, the specific implementation process of the above step 120 includes the following:
[0044] Step 121, obtaining the initial touch position of the user's finger on the touch display screen, and then generating a target selection frame centered on the initial touch position according to a set frame size, and any boundary line of the target selection frame is parallel to two boundary lines of the effective shooting area;
[0045] Step 122: obtaining a preset single focal length adjustment value associated with the camera; wherein the single focal length adjustment value can be modified by the user on the camera application software or kept as a default value, and the corresponding modified value will automatically change to the default value after the camera application software is closed;
[0046] Step 123: Each time the user's finger touches the target selection box, the camera is controlled to adjust its lens to the center of the target selection box, and then the target selection box and the image of the object selected by the target selection box are synchronously enlarged and displayed within the effective shooting area covered by the camera according to the single focal length adjustment amount;
[0047] Step 124, after each enlargement and adjustment of the target selection frame and the object image selected by the frame, obtaining the minimum boundary distance between the enlarged and adjusted target selection frame and the effective shooting area;
[0048] Step 125, determine whether the minimum boundary distance is less than a preset value; if so, generate an interface warning message to inform the user that the current object image has reached the magnification limit within the effective shooting area, and refuse to perform the next magnification adjustment operation, and wait for execution of the above step 140; if not, allow the next magnification adjustment operation to be performed, and return to execute step 123.
[0049] In an embodiment of the present invention, before executing the above-mentioned step 123, it also includes: obtaining the initial focal length information associated with the camera, that is, the lens focal length provided in the conventional shooting mode; before any zooming in and adjusting the target selection box and the object image selected by it, because the touch display screen will update the regional position record of the target selection box after the last zooming in and adjustment, if the touch display screen detects that the user's finger is not touching the target selection box, the camera is controlled to adjust its lens to the position of the center of the target selection box, and then the target selection box and the object image selected by it are restored to the initial normal display state according to the initial focal length information, that is, the user gives up zooming in and shooting the originally selected object image.
[0050] Of course, the embodiment of the present invention may also provide an error operation prompt function. When the touch display screen detects that the user's finger is not touching the target selection box, a prompt message may be popped up on the interface to allow the user to confirm whether to return to the initial normal display state. When the user confirms that the touch action is actually required, the camera may be controlled to continue to perform the above-mentioned recovery operation. Alternatively, when the user confirms that the touch action is an error operation, no response may be given to the touch action.
[0051] In an embodiment of the present invention, the specific implementation process of the above step 124 is: the size of the area presented by the effective shooting area on the touch display screen is fixed, and the distance between each boundary of the target selection frame after enlargement and adjustment and the closest boundary in the effective shooting area is obtained, and then the minimum distance is selected as the minimum boundary distance between the target selection frame after enlargement and adjustment and the effective shooting area.
[0052] In an embodiment of the present invention, the preset value mentioned in the above step 125 is actually determined by the single focal length adjustment amount. The single focal length adjustment amount can be used to obtain a fixed offset when any boundary line of the target selection box extends outward after a zoom-in operation occurs. The fixed offset here is the preset value.
[0053] It should be noted that, in the prior art, the user usually moves two fingers in opposite directions on the touch display screen to enlarge the image of the object selected by the fingers, but there is no specific limitation on the degree of this magnification, and it is easy to enlarge the object image to exceed the effective shooting area covered by the camera. Here, by implementing the above steps 124 to 125, it can be ensured that the object image selected by the user always appears in the effective shooting area covered by the camera, thereby realizing the effective magnification shooting function of the object image.
[0054] In an embodiment of the present invention, the camera application software is provided with a photo control button on its interface; when the terminal device runs the camera application software and is in the enlarged photo mode, the user's triggering action on the photo control button is detected in real time through the touch display screen to obtain the first photo instruction mentioned in step 140, and then the camera is controlled to perform the photo action; on the contrary, when the terminal device runs the camera application software and is in the regular photo mode, the user's triggering action on the photo control button is detected in real time through the touch display screen to obtain the second photo instruction mentioned in step 150, and then the camera is controlled to perform the photo action.
[0055] In an embodiment of the present invention, the camera application software is further provided with a mode switching button on its interface; when the terminal device runs the camera application software and is in the magnified photographing mode, a first mode switching instruction input by the user is obtained in real time, that is, the user's triggering action on the mode switching button is detected in real time through the touch display screen to obtain the first mode switching instruction, and then the magnified photographing mode is switched to the regular photographing mode according to the first mode switching instruction; conversely, when the terminal device runs the camera application software and is in the regular photographing mode, a second mode switching instruction input by the user is obtained in real time, that is, the user's triggering action on the mode switching button is detected in real time through the touch display screen to obtain the second mode switching instruction, and then the regular photographing mode is switched to the magnified photographing mode according to the second mode switching instruction.
[0056] In the embodiment of the present invention, the target selection box and the object image selected by the target selection box are magnified and displayed according to the number of times the user's finger touches the target selection box, which is more accurate and controllable than the prior art that uses the reverse movement distance between two fingers to determine the magnification degree of the object image. By limiting the target selection box to always remain within the effective shooting area covered by the camera for magnification display, the improper operation problem existing in the prior art can be overcome, thereby ensuring that the selected object image is effectively magnified and photographed.
[0057] Please refer to Figure 2 , Figure 2: is a schematic diagram of the structure of an object magnification and shooting control system provided by an embodiment of the present invention, the system comprising:
[0058] The mode acquisition module 210 is used to acquire the photographing mode selection information input by the user;
[0059] The information determination module 220 is used to determine whether the photographing mode selection information indicates that the user selects the zoom photographing mode; if so, the region enlargement module 230 continues to run; if not, it means that the photographing mode selection information indicates that the user selects the normal photographing mode, and the second photographing module 250 is jumped to run;
[0060] The area magnification module 230 is used to obtain a target selection frame generated by the user's finger on the touch screen when recognizing that the user selects the magnified shooting mode, and then magnify and display the target selection frame and the object image selected by the target selection frame in the effective shooting area covered by the camera according to the number of touches of the user's finger in the target selection frame;
[0061] The first photographing module 240 is used to obtain a first photographing instruction input by the user and control the camera to execute a photographing action when the image of the object selected by the target selection box has been enlarged and displayed to meet the user's needs;
[0062] The second photographing module 250 is used to obtain a second photographing instruction input by the user and control the camera to execute a photographing action when it is recognized that the user selects the conventional photographing mode.
[0063] The contents of the above method embodiments are all applicable to the present system embodiments. The functions implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are the same as those of the above method embodiments. The functional principles implemented by the present system embodiments will not be repeated here.
[0064] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0065] Although the description of the present application has been quite detailed and specifically describes several described embodiments, it is not intended to be limited to any of these details or embodiments or any particular embodiment, but should be regarded as providing a broad possible interpretation of these claims by reference to the attached claims, taking into account the prior art, so as to effectively cover the intended scope of the present application. In addition, the above description of the present application is based on the embodiments foreseeable by the inventor, and its purpose is to provide a useful description, and those non-substantial changes to the present application that have not yet been foreseen may still represent equivalent changes to the present application.
Claims
1. A method for controlling object magnification and shooting, applied to a terminal device provided with a touch screen and a camera, characterized in that: The method comprises: Get the camera mode selection information input by the user; When it is recognized that the user selects the zoom shooting mode, a target selection frame generated by the user's finger on the touch screen is obtained, and then the target selection frame and the image of the object selected by the target selection frame are zoomed in and displayed within the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection frame; When the image of the object selected by the target selection box has been enlarged and displayed until it meets the user's needs, obtaining a first photo-taking instruction input by the user and controlling the camera to execute a photo-taking action; When it is recognized that the user selects the conventional photographing mode, obtaining a second photographing instruction input by the user and controlling the camera to execute a photographing action; The step of obtaining a target selection frame generated by a user's finger on the touch display screen includes: Acquire the initial touch position of the user's finger on the touch display screen, and then generate a target selection frame centered on the initial touch position according to a set frame size; The step of enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box includes: Obtaining a preset single focal length adjustment amount associated with the camera; Each time the user's finger touches the target selection box, the camera is controlled to adjust its lens to the center of the target selection box, and then the target selection box and the image of the object selected by the box are synchronously enlarged and displayed within the effective shooting area covered by the camera according to the single focal length adjustment amount; Wherein, the step of enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box further includes: Obtaining initial focal length information associated with the camera; Before any zooming in and adjustment of the target selection box and the image of the object selected by it, if it is detected that the user's finger is not touching the target selection box, the camera is controlled to adjust its lens to the position of the center of the target selection box, and then the target selection box and the image of the object selected by it are restored to the most initial normal display state according to the initial focal length information; Wherein, the step of enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box further includes: After each enlargement and adjustment of the target selection frame and the object image selected by the frame, obtaining the minimum boundary distance between the enlarged and adjusted target selection frame and the effective shooting area; Determine whether the minimum boundary distance is less than a preset value; if so, generate an interface warning message and refuse to perform the next zoom-in adjustment operation; if not, allow the next zoom-in adjustment operation to be performed; The preset value is determined by the single focal length adjustment amount, and the fixed offset of any boundary line of the target selection box extending outward after a zoom-in operation occurs is obtained through the single focal length adjustment amount. The fixed offset is the preset value.
2. The object magnification shooting control method according to claim 1, characterized in that: When the terminal device is in the zoom-in photographing mode, the method further includes: A first mode switching instruction input by a user is acquired in real time, and then the zoomed-in photographing mode is switched to the normal photographing mode according to the first mode switching instruction.
3. The object magnification shooting control method according to claim 1, characterized in that: When the terminal device is in the conventional photographing mode, the method further includes: A second mode switching instruction input by the user is obtained in real time, and then the normal photographing mode is switched to the enlarged photographing mode according to the second mode switching instruction.
4. An object magnification shooting control system, applied to a terminal device provided with a touch screen and a camera, characterized in that: The system comprises: A mode acquisition module is used to obtain the camera mode selection information input by the user; The area magnification module is used to obtain the target selection frame generated by the user's finger on the touch screen when recognizing that the user selects the magnified shooting mode, and then magnify and display the target selection frame and the object image selected by the target selection frame in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection frame; A first photographing module, configured to obtain a first photographing instruction input by a user and control the camera to execute a photographing action when the image of the object selected by the target selection box has been enlarged and displayed until it meets the user's needs; A second photographing module is used to obtain a second photographing instruction input by the user and control the camera to perform a photographing action when recognizing that the user selects a conventional photographing mode; The step of obtaining a target selection frame generated by a user's finger on the touch display screen includes: Acquire the initial touch position of the user's finger on the touch display screen, and then generate a target selection frame centered on the initial touch position according to a set frame size; The step of enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box includes: Obtaining a preset single focal length adjustment amount associated with the camera; Each time the user's finger touches the target selection box, the camera is controlled to adjust its lens to the center of the target selection box, and then the target selection box and the image of the object selected by the box are synchronously enlarged and displayed within the effective shooting area covered by the camera according to the single focal length adjustment amount; Wherein, the step of enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box further includes: Obtaining initial focal length information associated with the camera; Before any zooming in and adjustment of the target selection box and the image of the object selected by it, if it is detected that the user's finger is not touching the target selection box, the camera is controlled to adjust its lens to the position of the center of the target selection box, and then the target selection box and the image of the object selected by it are restored to the most initial normal display state according to the initial focal length information; Wherein, the step of enlarging and displaying the target selection box and the image of the object selected by the target selection box in the effective shooting area covered by the camera according to the number of times the user's finger touches the target selection box further includes: After each enlargement and adjustment of the target selection frame and the object image selected by the frame, obtaining the minimum boundary distance between the enlarged and adjusted target selection frame and the effective shooting area; Determine whether the minimum boundary distance is less than a preset value; if so, generate an interface warning message and refuse to perform the next zoom-in adjustment operation; if not, allow the next zoom-in adjustment operation to be performed; The preset value is determined by the single focal length adjustment amount, and the fixed offset of any boundary line of the target selection box extending outward after a zoom-in operation occurs is obtained through the single focal length adjustment amount. The fixed offset is the preset value.
Citation Information
Patent Citations
Imaging apparatus, image processing apparatus, zoom control method, and zoom control program
CN101753817A
Video monitoring method and device adopting remote program control
CN103501423A
Photographing method, photographing device and mobile terminal
CN105872349A
