WO2022111458A1 - Image capture method and apparatus, electronic device, and storage medium - Google Patents

Image capture method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2022111458A1
WO2022111458A1 PCT/CN2021/132365 CN2021132365W WO2022111458A1 WO 2022111458 A1 WO2022111458 A1 WO 2022111458A1 CN 2021132365 W CN2021132365 W CN 2021132365W WO 2022111458 A1 WO2022111458 A1 WO 2022111458A1
Authority
WO
WIPO (PCT)
Prior art keywords
images
graphic information
electronic device
information
splicing
Prior art date
Application number
PCT/CN2021/132365
Other languages
French (fr)
Chinese (zh)
Inventor
曹岱
Original Assignee
维沃移动通信(杭州)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信(杭州)有限公司 filed Critical 维沃移动通信(杭州)有限公司
Publication of WO2022111458A1 publication Critical patent/WO2022111458A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2628Alteration of picture size, shape, position or orientation, e.g. zooming, rotation, rolling, perspective, translation

Definitions

  • the present application belongs to the technical field of image processing, and in particular relates to an image capturing method and device, an electronic device and a storage medium.
  • the existing shooting methods have at least the following problems: the images obtained during the shooting process can only form a fixed shape, such as a rectangle, etc., which leads to the lack of interest in the captured pictures and affects the shooting experience .
  • the purpose of the embodiments of the present application is to provide an image capturing method and device, an electronic device and a storage medium, which can solve the problem that the existing capturing method can only form a fixed shape and lack interest.
  • an embodiment of the present application provides an image capturing method, which includes:
  • N is a positive integer
  • the N images are spliced to obtain a target image, and the shape of the target image matches the shape shown by the graphic information.
  • an embodiment of the present application provides an image capturing device, and the device includes:
  • an acquisition module configured to acquire graphic information, and acquire N images captured by the camera, where N is a positive integer
  • the splicing module is used for splicing the N images according to the graphic information to obtain a target image, and the shape of the target image matches the shape shown by the graphic information.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • an embodiment of the present application provides a program product, the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect. step.
  • an embodiment of the present application provides an electronic device configured to execute the steps of the method described in the first aspect.
  • the N is a positive integer; according to the graphic information, the N images are spliced to obtain a target image, The shape of the target image matches the shape shown by the graphic information.
  • N images can be automatically spliced into shapes corresponding to the graphic information according to the acquired graphic information, so that the shape of the target image can change with the shape of the graphic information, thereby improving the fun of shooting and user experience.
  • FIG. 1 is one of the flowcharts of the image capturing method provided by an embodiment of the present invention
  • FIG. 2 is one of the schematic display diagrams of the shooting interface provided by the embodiment of the present invention.
  • FIG. 3 is the second schematic diagram of the display of the photographing interface provided by the embodiment of the present invention.
  • FIG. 4 is a third schematic diagram of a display of a shooting interface provided by an embodiment of the present invention.
  • FIG. 5 is a fourth schematic diagram of a display of a shooting interface provided by an embodiment of the present invention.
  • FIG. 7 is a third flowchart of an image capturing method provided by an embodiment of the present invention.
  • FIG. 8 is a fifth schematic diagram of a display of a photographing interface provided by an embodiment of the present invention.
  • FIG. 9 is one of the structural diagrams of an image capturing device provided by an embodiment of the present invention.
  • FIG. 10 is one of the structural diagrams of an electronic device provided by an embodiment of the present invention.
  • FIG. 11 is a second structural diagram of an electronic device provided by an embodiment of the present invention.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 is one of the flowcharts of an image capturing method provided by an embodiment of the present invention. As shown in FIG. 1, this embodiment provides an image capturing method, including the following steps:
  • Step 101 Acquire graphic information, and acquire N images captured by the camera, where N is a positive integer.
  • the graphic information is the specific shape information of the target image that the user wants to obtain, and the graphic information can be any shape such as square, rectangle, triangle, circle, heart, etc., which is not specifically limited in the present invention.
  • the way to obtain graphic information can be obtained by receiving input from the user, such as receiving graphic information input by the user through the touch screen of the electronic device, or receiving graphic information input by the user through voice commands, touch selection, etc.; of course, it can also be obtained by
  • the electronic device can automatically recognize that, for example, when the user moves the electronic device during the shooting process, the movement trajectory can be recognized, and the movement trajectory can be determined as graphic information.
  • the N images may be one image or multiple images.
  • the electronic device acquires multiple images, and since the shooting positions of the multiple images are different, images of different angles of the target object can be obtained.
  • the way of acquiring N images captured by the camera can be obtained by setting the photographing mode of the electronic device, such as turning on the continuous shooting mode of the electronic device; or by triggering the photographing button multiple times by the user, which is not specifically limited in the present invention.
  • Step 102 splicing N images according to the graphic information to obtain a target image, and the shape of the target image matches the shape shown in the graphic information.
  • the image content of the N images can be identified, and then the identified N images can be spliced according to the graphic information, and finally a shape matching the shape shown by the graphic information is obtained. target image.
  • a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate the target image.
  • the above-mentioned electronic equipment may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), a mobile Internet Device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.
  • the target image is obtained by acquiring graphic information and N images, and splicing the N images according to the graphic information.
  • N images can be automatically spliced into shapes corresponding to the graphic information according to the acquired graphic information, so that the shape of the target image can change with the shape of the graphic information, thereby improving the fun of shooting and user experience.
  • the above-mentioned acquisition of graphic information specifically includes:
  • a first input from the user is received, and graphic information is acquired according to the first input.
  • the above-mentioned first input includes at least one of the following: click input, slide input, and press input.
  • the embodiments of the present application do not specifically limit the input manner, and may be any achievable manner.
  • a user's long-press or sliding input on the shooting interface may be received, and in response to the input, a graphic information input window is displayed in a preset area of the shooting interface, and then the user's sliding input in the graphic information input window is received, and the response It should be swiped and the graph of the swipe input should be saved as graph information.
  • the graphic corresponding to the sliding input is saved as graphic information; it can also be in the graphic information input window.
  • the "Save" and "Cancel” buttons are displayed on the shooting interface.
  • assuming that the user wants to obtain a target image with a circular outline it is necessary to manually input a circle 310 in the graphic information input window 210 of the photographing interface.
  • the photographing interface before and after inputting the graphic information is as shown in the figure. 2 and FIG. 3 , thus, after the user inputs the circle 310, the electronic device uses the circle 310 as graphic information, so as to subsequently generate a target image according to the graphic information.
  • the electronics can directly stitch N images according to the graphic information input by the user, making the stitching process more efficient.
  • N images captured by the camera include:
  • the above-mentioned prompt information may be prompt information in the form of text, graphics, or sound, etc., when the user moves the electronic device to take pictures, the user is prompted accordingly.
  • the prompt information is prompt information in the form of graphics
  • the obtained graphic information can be directly displayed on the shooting interface, or the contour arc of the graphic information can be displayed on the shooting interface, so that the user can use the graphic information or contour arc according to the graphic information.
  • Move the electronic device to ensure that the movement trajectory of the electronic device matches the graphic information.
  • the prompt information is prompt information in the form of sound, it can be converted into a voice prompt according to the obtained graphic information, such as "Please move the electronic device in the shape of a triangle" and so on.
  • the electronic device may be moved according to the movement trajectory indicated by the above-mentioned prompt information, and N images captured by the camera are acquired during the moving process; It may be that the user moves the electronic device at will, and acquires N images captured by the camera during the movement of the electronic device.
  • the acquisition method of the above-mentioned N images may be that the shooting mode of the electronic device is set to a preset continuous shooting module, and in the preset continuous shooting mode, an image is acquired every preset time length, thereby acquiring N images; It may also be that the user triggers the camera button multiple times to acquire N images during the process of moving the electronic device.
  • the shooting mode of the electronic device needs to be set before shooting, as shown in Figure 4, the user can click the "Settings" in the shooting interface. ” button 410 to jump from the shooting interface shown in FIG. 4 to the setting page shown in FIG. 5 , so that the user can select the desired continuous shooting mode on the setting page.
  • the continuous shooting mode Including normal mode and artificial intelligence (Artificial Intelligence, AI for short) jigsaw mode, normal mode refers to saving and displaying the N images obtained during continuous shooting, while AI jigsaw mode refers to the continuous shooting process. N images are saved and displayed after AI recognition and stitching.
  • the prompt information of the graphic information is displayed on the shooting interface, so that the user can move the electronic device according to the prompt information when the mobile electronic device is shooting, so that the movement track of the electronic device is close to the shape of the graphic information, thereby improving the image quality. Splicing efficiency and quality.
  • step 102 splicing N images to obtain the target image, specifically comprising the following steps:
  • the identified N images are spliced according to the shape of the graphic information to obtain the target image, wherein, in the case that the N images have repeated parts, the repeated parts of the N images are de-duplicated during the splicing process.
  • the image content of the N images can be identified, and then the identified N images can be spliced according to the graphic information, and finally a shape matching the shape shown by the graphic information is obtained. target image.
  • a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate the target image.
  • the N images obtained by shooting are directly stitched through the graphic information input by the user to obtain the target image desired by the user. Since the shape of the target image depends on the graphic information manually input by the user on the shooting interface of the electronic device, the user's ideal graphic shape can be obtained more accurately, so that the final stitched target image is more suitable for the user's needs.
  • FIG. 6 is a second flowchart of an image capturing method provided by an embodiment of the present invention, the image capturing method, which specifically includes steps:
  • Step 601 Receive a first input from a user, and acquire graphic information according to the first input.
  • the above-mentioned first input includes at least one of the following: click input, slide input, and press input.
  • the embodiments of the present application do not specifically limit the input manner, and may be any achievable manner.
  • a user's long-press or sliding input on the shooting interface may be received, and in response to the input, a graphic information input window is displayed in a preset area of the shooting interface, and then the user's sliding input in the graphic information input window is received, and the response It should be swiped and the graph of the swipe input should be saved as graph information.
  • Step 602 Display the prompt information of the graphic information on the shooting interface, where the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information.
  • the above-mentioned prompt information may be a contour arc in the shape shown by the graphic information.
  • the contour arc may be a multi-segment arc in a circle; it is assumed that the target circle If it is a square or a rectangle, the contour arc can be the contour of the four included angles of the square or rectangle, and so on.
  • Step 603 Acquire N images captured by the camera during the movement of the electronic device.
  • Acquiring N images captured by the camera during the movement of the electronic device specifically, the electronic device may be moved according to the movement trajectory indicated by the above-mentioned prompt information, and N images captured by the camera are acquired during the moving process; It may be that the user moves the electronic device at will, and acquires N images captured by the camera during the movement of the electronic device.
  • Step 604 Identify the N images.
  • Step 605 splicing the identified N images according to the shape of the graphic information to obtain the target image, wherein, in the case that the N images have repeated parts, the repeated parts of the N images are de-duplicated during the splicing process.
  • the image content of the N images can be identified, and then the identified N images can be spliced according to the graphic information, and finally a shape matching the shape shown by the graphic information is obtained. target image.
  • a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate the target image.
  • the graphic information is in the shape of an approximate triangle
  • the outline of the final target image is an approximate triangle
  • the electronics can stitch N images directly according to the graphic information input by the user, making the stitching process more efficient.
  • obtaining the graphic information above may also include the following steps:
  • Graphic information is determined according to the movement trajectory.
  • the user does not need to manually input graphic information on the shooting interface, but during the shooting process, obtains the position information of the electronic device through a preset sensor, so as to determine the movement trajectory of the electronic device according to the position information, and then according to the position information.
  • the movement trajectory of the electronic device determines the graphic information. Specifically, when it is detected that the camera is in the shooting state, the sensor on the electronic device collects the position information of the electronic device in real time until the camera exits the shooting state. According to the obtained position information and the corresponding collection time point, it can be determined that The movement track of the camera during the entire shooting process.
  • the senor here can be a built-in sensor in an electronic device, such as a gravitational acceleration sensor, a gyroscope, an electronic compass sensor, etc., or an external sensor, which is not specifically limited in this application.
  • the movement trajectory can be used as image information.
  • the graphic information can be determined according to the movement trajectory of the electronic device during the shooting process, and no separate setting by the user is required, thereby reducing the difficulty of the user's operation and facilitating the user to easily obtain the graphic information.
  • N images are spliced to obtain the target image, which specifically includes the following steps:
  • the repeated parts of N images are deduplicated; the initial image and M candidate images are displayed;
  • the shapes of the M candidate graphics are determined by the electronic device according to a preset recognition algorithm and graphics information.
  • the graphic information here is graphic information determined according to the movement track of the electronic device. Since the user is prone to jitter or irregular movement when moving the electronic device, after obtaining the actual movement trajectory of the electronic device, the graphic information can be identified by a preset recognition algorithm, so as to identify the graphic information similar to the graphic information. Other more regular or non-fluctuating graphics are used as candidate images for the user to choose.
  • M here is any positive integer, which is not specifically limited in this application.
  • the image content of the N images can be identified, and then the identified N images are spliced according to the graphic information and the M candidate graphics, and finally An initial image matching the shape shown by the graphic information, and M candidate images matching the M candidate graphics are obtained.
  • a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate an initial image and M candidate images.
  • the initial image and the M candidate images are displayed on the display interface of the electronic device for selection by the user, so that the user can determine the target image from the initial image and the M candidate images.
  • the display interface of the initial image and the candidate image is shown in FIG. 8 .
  • the display interface shown in FIG. 8 includes at least one initial image and multiple candidate images. If you are satisfied, you can swipe left or right or click the preset control to enter the next interface for selection, thereby providing users with more choices.
  • graphics information and M candidate graphics are determined according to the actual movement track of the electronic device, and an initial image and M candidate graphics are generated according to the graphics information and the M candidate graphics for the user to select for reference, thereby improving the performance of the user.
  • the selection space for the target image is determined according to the actual movement track of the electronic device, and an initial image and M candidate graphics are generated according to the graphics information and the M candidate graphics for the user to select for reference, thereby improving the performance of the user.
  • Fig. 7 is the third flow chart of the image capturing method provided by the embodiment of the present invention, the image capturing method specifically includes the steps:
  • Step 701 Acquire the movement track of the camera in the process of acquiring N images.
  • the sensor on the electronic device collects the position information of the electronic device in real time until the camera exits the shooting state. movement trajectory during the process.
  • the sensor here can be a built-in sensor in an electronic device, such as a gravitational acceleration sensor, a gyroscope, an electronic compass sensor, etc., or an external sensor, which is not specifically limited in this application.
  • Step 702 Determine graphic information according to the movement track.
  • Step 703 Obtain M candidate graphics of graphics information, where M is a positive integer.
  • the graphic information can be identified by a preset recognition algorithm, so as to identify other more regular or non-fluctuating graphics similar to the graphic information as candidate images for the user to select.
  • M is any positive integer, which is not specifically limited in this application.
  • the graphic information is a circle
  • an ellipse similar to a circle can be determined as a candidate image through a preset recognition algorithm.
  • Step 704 Acquire N images captured by the camera, where N is a positive integer.
  • the acquisition method of the above-mentioned N images may be that the shooting mode of the electronic device is set to a preset continuous shooting module, and in the preset continuous shooting mode, an image is acquired every preset time length, thereby acquiring N images; It may also be that the user triggers the camera button multiple times to acquire N images during the process of moving the electronic device. It should be noted that if the preset continuous shooting mode in the electronic device is used to obtain N images, the shooting mode of the electronic device needs to be set before shooting, as shown in Figure 4, the user can click the "Settings" in the shooting interface. ” button 410 to jump from the shooting interface shown in FIG. 4 to the setting page shown in FIG. 5 , so that the user can select the desired continuous shooting mode on the setting page.
  • the continuous shooting mode Including normal mode and artificial intelligence (Artificial Intelligence, AI for short) jigsaw mode
  • normal mode refers to saving and displaying the N images obtained during continuous shooting
  • AI jigsaw mode refers to the continuous shooting process.
  • N images are saved and displayed after AI recognition and stitching.
  • Step 705 Identify the N images, and splicing the identified N images according to the graphic information and the shapes of the M candidate graphics, respectively, to obtain the initial image and the M candidate images.
  • M candidate graphics and N images of the graphic information After obtaining the graphic information, M candidate graphics and N images of the graphic information, the image content of the N images can be identified, and then the identified N images are spliced according to the graphic information and the M candidate graphics, and finally An initial image matching the shape shown by the graphic information, and M candidate images matching the M candidate graphics are obtained.
  • a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate an initial image and M candidate images.
  • Step 706 Display the initial image and the M candidate images.
  • Step 707 Receive the second input from the user, and determine the target image from the initial image and the M candidate images according to the second input.
  • An initial image and M candidate images are displayed on the display interface of the electronic device for selection by the user, and a target image is determined from the initial image and the M candidate images.
  • the display interface of the initial image and the candidate image is shown in FIG. 8 .
  • the display interface shown in FIG. 8 includes at least one initial image and multiple candidate images. If you are satisfied, you can swipe left or right or click the preset control to enter the next interface for selection, thereby providing users with more choices.
  • Step 701 may be performed before or after step 703, or may be performed simultaneously, which is not specifically limited in this application.
  • graphics information and candidate graphics are determined according to the actual movement trajectory of the electronic device, and initial images and candidate graphics are generated according to the graphics information and candidate graphics for reference selection by the user, thereby increasing the selection space of target images.
  • the graphic information can be determined according to the movement track of the electronic device, without the need for the user to set up separately, thereby reducing the difficulty of the user's operation and facilitating the user to easily obtain the target image.
  • the execution subject may be an image capturing device, or a control module in the image capturing device for executing the image capturing method.
  • the image capturing device provided by the embodiment of the present application is described by taking the image capturing method performed by the image capturing device as an example.
  • FIG. 9 is one of the structural diagrams of an image capturing apparatus provided by an embodiment of the present invention.
  • the image capturing apparatus 900 includes:
  • an acquisition module 901 configured to acquire graphic information, and acquire N images captured by a camera, where N is a positive integer;
  • the splicing module 902 is used for splicing N images according to the graphic information to obtain a target image, and the shape of the target image matches the shape shown by the graphic information.
  • the acquisition module 901 includes:
  • the processing sub-module is configured to receive the first input of the user, and obtain graphic information according to the first input.
  • the acquisition module 901 also includes:
  • the first display sub-module is used for displaying the prompt information of the graphic information on the shooting interface, and the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information;
  • the first acquisition submodule is used to acquire N images captured by the camera during the movement of the electronic device.
  • the splicing module 902 includes:
  • the identification sub-module is used to identify N images
  • the first splicing sub-module is used for splicing the identified N images according to the shape of the graphic information to obtain the target image, wherein, in the case that the N images have repeated parts, the N images are repeated during the splicing process. Partially deduplicated.
  • the acquisition module 901 also includes:
  • the second acquisition sub-module is used to acquire the movement track of the camera in the process of acquiring N images
  • the first determination sub-module is used for determining graphic information according to the movement track.
  • the splicing module 902 also includes:
  • the third acquisition sub-module is used to acquire M candidate graphics of graphics information, where M is a positive integer;
  • the second splicing sub-module is used to identify N images, and splices the identified N images according to the graphic information and the shapes of the M candidate graphics to obtain the initial image and the M candidate images, wherein, in the N images In the case of repeated parts of the images, the repeated parts of N images are de-duplicated during the splicing process;
  • the second display submodule is used to display the initial image and the M candidate images
  • a second determination submodule configured to receive a second input from the user, and determine a target image from the initial image and the M candidate images according to the second input;
  • the shapes of the M candidate graphics are determined by the electronic device according to a preset recognition algorithm and graphics information.
  • N images can be spliced according to the graphic information to obtain a target image.
  • N images can be automatically spliced into shapes corresponding to the graphic information according to the acquired graphic information, so that the shape of the target image can change with the shape of the graphic information, thereby improving the fun of shooting and user experience.
  • the image stitching device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the image stitching device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the image stitching apparatus provided in the embodiment of the present application can implement each process implemented by the above-mentioned image capturing method embodiment, and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 1000, including a processor 1001, a memory 1002, a program or instruction stored in the memory 1002 and executable on the processor 1001, the program Or when the instruction is executed by the processor 1001, each process of the above image capturing method embodiments can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110, etc. part.
  • the electronic device 1100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1110 through a power management system, so that the power management system can manage charging, discharging, and power consumption. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the processor 1110 is used for acquiring graphic information and acquiring N images captured by the camera, where N is a positive integer; according to the graphic information, the N images are spliced to obtain a target image whose shape is related to the graphic information. match the shape shown.
  • the user input unit 1107 is configured to receive the first input of the user, and the processor 1110 is further configured to acquire graphic information according to the first input.
  • the display unit 1106 is used to display the prompt information of the graphic information on the shooting interface, and the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information; the processor 1110 is used to obtain the N images shot by the camera during the movement of the electronic device. image.
  • the processor 1110 is also used to identify the N images; splicing the identified N images according to the shape of the graphic information to obtain the target image, wherein, in the case that the N images have repeated parts, in the The repeated parts of N images are deduplicated during the stitching process. Further, the processor 1110 is further configured to acquire the movement trajectory of the camera in the process of acquiring N images; and determine the graphic information according to the movement trajectory.
  • the processor 1011 is also used to obtain M candidate graphics of graphics information, where M is a positive integer; identify the N images, and carry out the identification according to the graphics information and the shapes of the M candidate graphics respectively. Splicing to obtain an initial image and M candidate images, wherein, in the case of repeated parts of the N images, de-duplication processing is performed on the repeated parts of the N images during the splicing process; the display unit 1106 is also used for the initial image. and the M candidate images are displayed; the user input unit 1107 is further configured to receive the second input from the user, and the processor 1011 is further configured to determine the target image from the initial image and the M candidate images according to the second input.
  • the N images after acquiring the graphic information and the N images, the N images can be spliced according to the graphic information to obtain the target image.
  • N images can be automatically spliced into shapes corresponding to the graphic information according to the obtained graphic information, so that the shape of the target image can change with the shape of the graphic information, thereby improving the fun of shooting and user experience.
  • the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 is used to communicate with the image capture device (such as camera) to obtain still images or video image data for processing.
  • the display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 1107 includes a touch panel 11071 and other input devices 11072 .
  • the touch panel 11071 is also called a touch screen.
  • the touch panel 11071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
  • Memory 1109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1110.
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium.
  • a program or an instruction is stored on the readable storage medium.
  • the processor is the processor in the electronic device in the above embodiment.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above image capturing method embodiments.
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is configured to run a program or an instruction to implement the above image capturing method embodiments.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.

Abstract

The present application relates to the technical field of image processing. Disclosed are an image capture method and apparatus, an electronic device, and a storage medium. The image capture method comprises: obtaining graphic information, and obtaining N images captured by a camera, N being a positive integer; and stitching the N images according to the graphic information to obtain a target image, the shape of the target image matching the shape shown in the graphic information.

Description

图像拍摄方法和装置、电子设备及存储介质Image capturing method and device, electronic device and storage medium
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请主张在2020年11月24日在中国提交的中国专利申请No.202011329825.X的优先权,其全部内容通过引用包含于此。This application claims priority to Chinese Patent Application No. 202011329825.X filed in China on Nov. 24, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于图像处理技术领域,具体涉及一种图像拍摄方法和装置、电子设备及存储介质。The present application belongs to the technical field of image processing, and in particular relates to an image capturing method and device, an electronic device and a storage medium.
背景技术Background technique
随着电子设备的拍照功能越来越强大,人们也越来越依赖电子设备的拍照功能来记录生活中的点点滴滴,将生活中的场景拍成一张张图片。在实现本申请过程中,发明人发现现有的拍摄方法中至少存在如下问题,拍摄过程中获得的图像最终只能形成固定的形状,如矩形等,导致拍摄的图片缺乏趣味性,影响拍摄体验。As the photographing function of electronic devices becomes more and more powerful, people also rely more and more on the photographing function of electronic devices to record the moments in life and take pictures of scenes in life. In the process of realizing the present application, the inventor found that the existing shooting methods have at least the following problems: the images obtained during the shooting process can only form a fixed shape, such as a rectangle, etc., which leads to the lack of interest in the captured pictures and affects the shooting experience .
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的是提供一种图像拍摄方法和装置、电子设备及存储介质,能够解决现有的拍摄方法只能形成固定的形状而缺乏趣味性的问题。The purpose of the embodiments of the present application is to provide an image capturing method and device, an electronic device and a storage medium, which can solve the problem that the existing capturing method can only form a fixed shape and lack interest.
为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:
第一方面,本申请实施例提供了一种图像拍摄方法,该方法包括:In a first aspect, an embodiment of the present application provides an image capturing method, which includes:
获取图形信息,以及获取所述摄像头拍摄的N张图像,所述N为正整数;Obtain graphic information, and obtain N images captured by the camera, where N is a positive integer;
根据所述图形信息,对所述N张图像进行拼接,以得目标图像,所述目标图像的形状与所述图形信息所示的形状相匹配。According to the graphic information, the N images are spliced to obtain a target image, and the shape of the target image matches the shape shown by the graphic information.
第二方面,本申请实施例提供了一种图像拍摄装置,所述装置包括:In a second aspect, an embodiment of the present application provides an image capturing device, and the device includes:
获取模块,用于获取图形信息,以及获取所述摄像头拍摄的N张图像, 所述N为正整数;an acquisition module, configured to acquire graphic information, and acquire N images captured by the camera, where N is a positive integer;
拼接模块,用于根据所述图形信息,对所述N张图像进行拼接,以得目标图像,所述目标图像的形状与所述图形信息所示的形状相匹配。The splicing module is used for splicing the N images according to the graphic information to obtain a target image, and the shape of the target image matches the shape shown by the graphic information.
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
第六方面,本申请实施例提供一种程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如第一方面所述的方法的步骤。In a sixth aspect, an embodiment of the present application provides a program product, the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect. step.
第七方面,本申请实施例提供了一种电子设备,被配置为执行如第一方面所述的方法的步骤。In a seventh aspect, an embodiment of the present application provides an electronic device configured to execute the steps of the method described in the first aspect.
在本申请实施例中,通过获取图形信息,以及获取所述摄像头拍摄的N张图像,所述N为正整数;根据所述图形信息,对所述N张图像进行拼接,以得目标图像,所述目标图像的形状与所述图形信息所示的形状相匹配。这样可以根据获取到的图形信息,自动将N张图像拼接成图形信息对应的形状,使得目标图像的形状可以随着图形信息的形状变化为变化,从而提高了拍摄的趣味性和用户体验。In the embodiment of the present application, by acquiring graphic information and acquiring N images captured by the camera, the N is a positive integer; according to the graphic information, the N images are spliced to obtain a target image, The shape of the target image matches the shape shown by the graphic information. In this way, N images can be automatically spliced into shapes corresponding to the graphic information according to the acquired graphic information, so that the shape of the target image can change with the shape of the graphic information, thereby improving the fun of shooting and user experience.
附图说明Description of drawings
图1是本发明实施例提供的图像拍摄方法的流程图之一;FIG. 1 is one of the flowcharts of the image capturing method provided by an embodiment of the present invention;
图2是本发明实施例提供的拍摄界面的显示示意图之一;FIG. 2 is one of the schematic display diagrams of the shooting interface provided by the embodiment of the present invention;
图3是本发明实施例提供的拍摄界面的显示示意图之二;FIG. 3 is the second schematic diagram of the display of the photographing interface provided by the embodiment of the present invention;
图4是本发明实施例提供的拍摄界面的显示示意图之三;FIG. 4 is a third schematic diagram of a display of a shooting interface provided by an embodiment of the present invention;
图5是本发明实施例提供的拍摄界面的显示示意图之四;FIG. 5 is a fourth schematic diagram of a display of a shooting interface provided by an embodiment of the present invention;
图6是本发明实施例提供的图像拍摄方法的流程图之二;6 is the second flowchart of the image capturing method provided by the embodiment of the present invention;
图7是本发明实施例提供的图像拍摄方法的流程图之三;FIG. 7 is a third flowchart of an image capturing method provided by an embodiment of the present invention;
图8是本发明实施例提供的拍摄界面的显示示意图之五;FIG. 8 is a fifth schematic diagram of a display of a photographing interface provided by an embodiment of the present invention;
图9是本发明实施例提供的图像拍摄装置的结构图之一;FIG. 9 is one of the structural diagrams of an image capturing device provided by an embodiment of the present invention;
图10本发明实施例提供的电子设备的结构图之一;FIG. 10 is one of the structural diagrams of an electronic device provided by an embodiment of the present invention;
图11是本发明实施例提供的电子设备的结构图之二。FIG. 11 is a second structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between "first", "second", etc. The objects are usually of one type, and the number of objects is not limited. For example, the first object may be one or more than one. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the associated objects are in an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的图像拍摄方法进行详细地说明。The image capturing method provided by the embodiments of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
参见图1,图1是本发明实施例提供的图像拍摄方法的流程图之一,如图1所示,本实施例提供一种图像拍摄方法,包括以下步骤:Referring to FIG. 1, FIG. 1 is one of the flowcharts of an image capturing method provided by an embodiment of the present invention. As shown in FIG. 1, this embodiment provides an image capturing method, including the following steps:
步骤101、获取图形信息,以及获取所述摄像头拍摄的N张图像,所述N为正整数。Step 101: Acquire graphic information, and acquire N images captured by the camera, where N is a positive integer.
具体地,该图形信息为用户想要得到的目标图像的具体形状信息,该图形信息可以为正方形、长方形、三角形、圆形、心形等任意形状,本发明不做具体限定。获取图形信息的方式,可以通过接收用户的输入来获取,如通过电子设备的触摸屏接收用户输入的图形信息,或者接收用户以语音指令、触摸选择等方式输入的图形信息;当然,还也可以由电子设备自动识别得到,例如,当用户在拍摄过程中移动电子设备,可以识别该移动轨迹,并将该移动轨迹确定图形信息。Specifically, the graphic information is the specific shape information of the target image that the user wants to obtain, and the graphic information can be any shape such as square, rectangle, triangle, circle, heart, etc., which is not specifically limited in the present invention. The way to obtain graphic information can be obtained by receiving input from the user, such as receiving graphic information input by the user through the touch screen of the electronic device, or receiving graphic information input by the user through voice commands, touch selection, etc.; of course, it can also be obtained by The electronic device can automatically recognize that, for example, when the user moves the electronic device during the shooting process, the movement trajectory can be recognized, and the movement trajectory can be determined as graphic information.
其中,N张图像可以为一张图像,也可以为多张图像。在一可选实施例中,电子设备获取多张图像,由于多张图像的拍摄位置不同,可以得到目标拍摄物不同角度的图像。获取摄像头拍摄的N张图像的方式,可以通过对电子设备的拍照模式进行设置,如开启电子设备的连拍模式;也可以由用户多次触发拍照按钮得到,本发明不做具体限定。The N images may be one image or multiple images. In an optional embodiment, the electronic device acquires multiple images, and since the shooting positions of the multiple images are different, images of different angles of the target object can be obtained. The way of acquiring N images captured by the camera can be obtained by setting the photographing mode of the electronic device, such as turning on the continuous shooting mode of the electronic device; or by triggering the photographing button multiple times by the user, which is not specifically limited in the present invention.
步骤102、根据图形信息,对N张图像进行拼接,以得目标图像,目标图像的形状与图形信息所示的形状相匹配。 Step 102 , splicing N images according to the graphic information to obtain a target image, and the shape of the target image matches the shape shown in the graphic information.
具体地,在获得图形信息和N张图像后,可以对N张图像的图像内容进行识别,再根据图形信息对识别后的N张图像进行拼接,最终得到与该图形信息所示的形状相匹配的目标图像。在拼接过程中,可以通过预设的识图算法对N张图像中的重复部分进行识别,并对重复部分进行去重处理,最终生成目标图像。这样,假设该图形信息为近似三角形的形状,则最终得到的目标图像的外形轮廓为近似三角形,假设该图形信息为近似圆形的形状,则最终得到的目标图像的外形轮廓为近似圆形等等。Specifically, after obtaining the graphic information and N images, the image content of the N images can be identified, and then the identified N images can be spliced according to the graphic information, and finally a shape matching the shape shown by the graphic information is obtained. target image. During the splicing process, a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate the target image. In this way, assuming that the graphic information is in the shape of an approximate triangle, the outline of the final target image is an approximate triangle, and if the graphic information is in the shape of an approximate circle, the outline of the final target image is an approximate circle, etc. Wait.
本发明实施例中,上述电子设备可以为手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿 戴式设备(Wearable Device)等。In the embodiment of the present invention, the above-mentioned electronic equipment may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), a mobile Internet Device (Mobile Internet Device, MID) or wearable device (Wearable Device), etc.
在本实施例中,通过获取图形信息和N张图像,并根据图形信息,对N张图像进行拼接,以得目标图像。这样可以根据获取到的图形信息,自动将N张图像拼接成图形信息对应的形状,使得目标图像的形状可以随着图形信息的形状变化为变化,从而提高了拍摄的趣味性和用户体验。In this embodiment, the target image is obtained by acquiring graphic information and N images, and splicing the N images according to the graphic information. In this way, N images can be automatically spliced into shapes corresponding to the graphic information according to the acquired graphic information, so that the shape of the target image can change with the shape of the graphic information, thereby improving the fun of shooting and user experience.
进一步地,上述获取图形信息,具体包括:Further, the above-mentioned acquisition of graphic information specifically includes:
接收用户的第一输入,根据第一输入获取图形信息。A first input from the user is received, and graphic information is acquired according to the first input.
其中,上述第一输入包括以下至少一种:点击输入、滑动输入、按压输入。具体地,本申请实施例对输入的方式不作具体限定,可为任一可实现的方式。Wherein, the above-mentioned first input includes at least one of the following: click input, slide input, and press input. Specifically, the embodiments of the present application do not specifically limit the input manner, and may be any achievable manner.
在本步骤中,可以接收用户在拍摄界面的长按或滑动输入,响应该输入,在拍摄界面的预设区域显示图形信息输入窗口,再接收用户在该图形信息输入窗口内的滑动输入,响应该滑动输入,将该滑动输入的图形作为图形信息保存。具体地,可以是在图形信息输入窗口接收到滑动输入后,若预设时段内没有接收到新的输入,则将该滑动输入对应的图形作为图形信息保存;也可以是在该图形信息输入窗口接收到滑动输入后,在拍摄界面显示“保存”和“取消”按钮,当接收到用户点击“保存”按钮的输入操作时,将该滑动输入对应的图形作为图形信息保存;当接收到用户点击“取消”按钮的输入操作时,将该图形信息输入窗口中的图形信息进行清除,支持用户重新输入新的图形信息。In this step, a user's long-press or sliding input on the shooting interface may be received, and in response to the input, a graphic information input window is displayed in a preset area of the shooting interface, and then the user's sliding input in the graphic information input window is received, and the response It should be swiped and the graph of the swipe input should be saved as graph information. Specifically, after the sliding input is received in the graphic information input window, if no new input is received within a preset period of time, the graphic corresponding to the sliding input is saved as graphic information; it can also be in the graphic information input window. After receiving the sliding input, the "Save" and "Cancel" buttons are displayed on the shooting interface. When receiving the input operation of the user clicking the "Save" button, the graphics corresponding to the sliding input is saved as graphic information; When the input operation of the "Cancel" button is performed, the graphic information in the graphic information input window is cleared, and the user is supported to re-input new graphic information.
在一可选实施例中,假设用户想要得到一个外形轮廓为圆形的目标图像,则需要在拍摄界面的图形信息输入窗口210中手动输入一个圆形310,输入图形信息前后拍摄界面如图2和图3所示,由此,在用户输入圆形310后,电子设备将该圆形310作为图形信息,以便后续根据该图形信息生成目标图像。In an optional embodiment, assuming that the user wants to obtain a target image with a circular outline, it is necessary to manually input a circle 310 in the graphic information input window 210 of the photographing interface. The photographing interface before and after inputting the graphic information is as shown in the figure. 2 and FIG. 3 , thus, after the user inputs the circle 310, the electronic device uses the circle 310 as graphic information, so as to subsequently generate a target image according to the graphic information.
在本实施例中,通过接收用户的第一输入,根据该第一输入获取图形信 息,使电子可以直接根据用户输入的图形信息对N张图像进行拼接,使得拼接过程更加高效。In this embodiment, by receiving the first input from the user and obtaining graphic information according to the first input, the electronics can directly stitch N images according to the graphic information input by the user, making the stitching process more efficient.
进一步地,上述获取摄像头拍摄的N张图像,包括:Further, the above-mentioned N images captured by the camera include:
将图形信息的提示信息显示在拍摄界面,提示信息用于提示用户按照图形信息的形状移动电子设备;Display the prompt information of the graphic information on the shooting interface, and the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information;
获取在电子设备移动过程中摄像头拍摄的N张图像。其中,上述提示信息可以是文字、图形或者声音等形式的提示信息,在用户移动电子设备进行拍摄时,对用户进行相应的提示。例如,当提示信息为图形形式的提示信息时,可以直接将获取到的图形信息显示在拍摄界面,或者将图形信息的轮廓弧线显示在拍摄界面,这样用户可以根据该图形信息或者轮廓弧线移动电子设备,确保电子设备的移动轨迹与图形信息相匹配。当提示信息为声音形式的提示信息时,可以根据获取到的图形信息转化为语音提示,如“请将电子设备按照三角形的形状移动”等等。Obtain N images captured by the camera during the movement of the electronic device. The above-mentioned prompt information may be prompt information in the form of text, graphics, or sound, etc., when the user moves the electronic device to take pictures, the user is prompted accordingly. For example, when the prompt information is prompt information in the form of graphics, the obtained graphic information can be directly displayed on the shooting interface, or the contour arc of the graphic information can be displayed on the shooting interface, so that the user can use the graphic information or contour arc according to the graphic information. Move the electronic device to ensure that the movement trajectory of the electronic device matches the graphic information. When the prompt information is prompt information in the form of sound, it can be converted into a voice prompt according to the obtained graphic information, such as "Please move the electronic device in the shape of a triangle" and so on.
获取在电子设备移动过程中摄像头拍摄的N张图像,具体地,可以是在电子设备按照上述提示信息所提示的移动轨迹来移动电子设备,在该移动过程中获取摄像头拍摄的N张图像;也可以是用户随意移动电子设备,在电子设备的移动过程中获取摄像头拍摄的N张图像。上述N张图像的获取方式,可以是将电子设备的拍摄模式设置成预设的连拍模块,在预设的连拍模式下每隔预设时长获取一次图像,由此获取到N张图像;也可以是用户在移动电子设备的过程中,多次触发拍照按钮获取到N张图像。需要说明的是,若采用电子设备中预设的连拍模式获取N张图像,则需要在拍摄前对电子设备的拍摄模式进行设置,如图4所示,用户可以点击拍摄界面中的“设置”按钮410,从图4所示的拍摄界面跳转至图5所示的设置页面,由此用户可以在设置页面对需要的连拍模式进行选择,例如,如图5所示,连拍模式包括普通模式和人工智能(Artificial Intelligence,简称AI)拼图模式,普通模式是指将连拍过程中获取到的N张图像单独保存并显示,而AI拼图模式是指将连 拍过程中获取到的N张图像进行AI识别拼接后保存并显示。Acquiring N images captured by the camera during the movement of the electronic device, specifically, the electronic device may be moved according to the movement trajectory indicated by the above-mentioned prompt information, and N images captured by the camera are acquired during the moving process; It may be that the user moves the electronic device at will, and acquires N images captured by the camera during the movement of the electronic device. The acquisition method of the above-mentioned N images may be that the shooting mode of the electronic device is set to a preset continuous shooting module, and in the preset continuous shooting mode, an image is acquired every preset time length, thereby acquiring N images; It may also be that the user triggers the camera button multiple times to acquire N images during the process of moving the electronic device. It should be noted that if the preset continuous shooting mode in the electronic device is used to obtain N images, the shooting mode of the electronic device needs to be set before shooting, as shown in Figure 4, the user can click the "Settings" in the shooting interface. ” button 410 to jump from the shooting interface shown in FIG. 4 to the setting page shown in FIG. 5 , so that the user can select the desired continuous shooting mode on the setting page. For example, as shown in FIG. 5 , the continuous shooting mode Including normal mode and artificial intelligence (Artificial Intelligence, AI for short) jigsaw mode, normal mode refers to saving and displaying the N images obtained during continuous shooting, while AI jigsaw mode refers to the continuous shooting process. N images are saved and displayed after AI recognition and stitching.
在本实施例中,通过在拍摄界面显示图形信息的提示信息,使得用户在移动电子设备进行拍摄时能依照提示信息来移动电子设备,使得电子设备的移动轨迹贴近图形信息的形状,从而提高图像拼接的效率和质量。In this embodiment, the prompt information of the graphic information is displayed on the shooting interface, so that the user can move the electronic device according to the prompt information when the mobile electronic device is shooting, so that the movement track of the electronic device is close to the shape of the graphic information, thereby improving the image quality. Splicing efficiency and quality.
进一步地,上述步骤102、根据图形信息,对N张图像进行拼接,以得目标图像,具体包括以下步骤:Further, above-mentioned step 102, according to the graphic information, splicing N images to obtain the target image, specifically comprising the following steps:
对N张图像进行识别;Identify N images;
将识别的N张图像按照图形信息的形状进行拼接,以得到目标图像,其中,在N张图像存在重复部分的情况下,在拼接过程中对N张图像的重复部分进行去重处理。The identified N images are spliced according to the shape of the graphic information to obtain the target image, wherein, in the case that the N images have repeated parts, the repeated parts of the N images are de-duplicated during the splicing process.
具体地,在获得图形信息和N张图像后,可以对N张图像的图像内容进行识别,再根据图形信息对识别后的N张图像进行拼接,最终得到与该图形信息所示的形状相匹配的目标图像。在拼接过程中,可以通过预设的识图算法对N张图像中的重复部分进行识别,并对重复部分进行去重处理,最终生成目标图像。这样,假设该图形信息为近似三角形的形状,则最终得到的目标图像的外形轮廓为近似三角形,假设该图形信息为近似圆形的形状,则最终得到的目标图像的外形轮廓为近似圆形等等。在本实施例中,通过用户输入的图形信息直接对拍摄得到的N张图像进行拼接处理,得到用户想要的目标图像。由于目标图像的形状取决于用户在电子设备的拍摄界面手动输入的图形信息,从而更能准确地获取用户理想的图形形状,使得最终拼接的目标图像更加贴合用户所需。Specifically, after obtaining the graphic information and N images, the image content of the N images can be identified, and then the identified N images can be spliced according to the graphic information, and finally a shape matching the shape shown by the graphic information is obtained. target image. During the splicing process, a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate the target image. In this way, assuming that the graphic information is in the shape of an approximate triangle, the outline of the final target image is an approximate triangle, and if the graphic information is in the shape of an approximate circle, the outline of the final target image is an approximate circle, etc. Wait. In this embodiment, the N images obtained by shooting are directly stitched through the graphic information input by the user to obtain the target image desired by the user. Since the shape of the target image depends on the graphic information manually input by the user on the shooting interface of the electronic device, the user's ideal graphic shape can be obtained more accurately, so that the final stitched target image is more suitable for the user's needs.
参见图6,图6是本发明实施例提供的图像拍摄方法的流程图之二,图像拍摄方法,具体包括步骤:Referring to FIG. 6, FIG. 6 is a second flowchart of an image capturing method provided by an embodiment of the present invention, the image capturing method, which specifically includes steps:
步骤601、接收用户的第一输入,根据第一输入获取图形信息。Step 601: Receive a first input from a user, and acquire graphic information according to the first input.
其中,上述第一输入包括以下至少一种:点击输入、滑动输入、按压输入。具体地,本申请实施例对输入的方式不作具体限定,可为任一可实现的 方式。Wherein, the above-mentioned first input includes at least one of the following: click input, slide input, and press input. Specifically, the embodiments of the present application do not specifically limit the input manner, and may be any achievable manner.
在本步骤中,可以接收用户在拍摄界面的长按或滑动输入,响应该输入,在拍摄界面的预设区域显示图形信息输入窗口,再接收用户在该图形信息输入窗口内的滑动输入,响应该滑动输入,将该滑动输入的图形作为图形信息保存。In this step, a user's long-press or sliding input on the shooting interface may be received, and in response to the input, a graphic information input window is displayed in a preset area of the shooting interface, and then the user's sliding input in the graphic information input window is received, and the response It should be swiped and the graph of the swipe input should be saved as graph information.
步骤602、将图形信息的提示信息显示在拍摄界面,提示信息用于提示用户按照图形信息的形状移动电子设备。Step 602: Display the prompt information of the graphic information on the shooting interface, where the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information.
在一实施例中,上述提示信息可以为图形信息所示形状的轮廓弧线,例如,假设该图形信息为圆形,则轮廓弧线可以为圆形中的多段圆弧;假设该目标圆形为正方形或矩形,则轮廓弧线可以为正方形或矩形的四个夹角的轮廓等等。In one embodiment, the above-mentioned prompt information may be a contour arc in the shape shown by the graphic information. For example, if the graphic information is a circle, the contour arc may be a multi-segment arc in a circle; it is assumed that the target circle If it is a square or a rectangle, the contour arc can be the contour of the four included angles of the square or rectangle, and so on.
步骤603、获取在电子设备移动过程中摄像头拍摄的N张图像。获取在电子设备移动过程中摄像头拍摄的N张图像,具体地,可以是在电子设备按照上述提示信息所提示的移动轨迹来移动电子设备,在该移动过程中获取摄像头拍摄的N张图像;也可以是用户随意移动电子设备,在电子设备的移动过程中获取摄像头拍摄的N张图像。Step 603: Acquire N images captured by the camera during the movement of the electronic device. Acquiring N images captured by the camera during the movement of the electronic device, specifically, the electronic device may be moved according to the movement trajectory indicated by the above-mentioned prompt information, and N images captured by the camera are acquired during the moving process; It may be that the user moves the electronic device at will, and acquires N images captured by the camera during the movement of the electronic device.
步骤604、对N张图像进行识别。Step 604: Identify the N images.
步骤605、将识别的N张图像按照图形信息的形状进行拼接,以得目标图像,其中,在N张图像存在重复部分的情况下,在拼接过程中对N张图像的重复部分进行去重处理。 Step 605, splicing the identified N images according to the shape of the graphic information to obtain the target image, wherein, in the case that the N images have repeated parts, the repeated parts of the N images are de-duplicated during the splicing process. .
具体地,在获得图形信息和N张图像后,可以对N张图像的图像内容进行识别,再根据图形信息对识别后的N张图像进行拼接,最终得到与该图形信息所示的形状相匹配的目标图像。在拼接过程中,可以通过预设的识图算法对N张图像中的重复部分进行识别,并对重复部分进行去重处理,最终生成目标图像。这样,假设该图形信息为近似三角形的形状,则最终得到的目标图像的外形轮廓为近似三角形,假设该图形信息为近似圆形的形状,则最 终得到的目标图像的外形轮廓为近似圆形等等。在本实施例中,通过接收用户的第一输入,根据该第一输入获取图形信息,使电子可以直接根据用户输入的图形信息对N张图像进行拼接,使得拼接过程更加高效。Specifically, after obtaining the graphic information and N images, the image content of the N images can be identified, and then the identified N images can be spliced according to the graphic information, and finally a shape matching the shape shown by the graphic information is obtained. target image. During the splicing process, a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate the target image. In this way, assuming that the graphic information is in the shape of an approximate triangle, the outline of the final target image is an approximate triangle, and if the graphic information is in the shape of an approximate circle, the outline of the final target image is an approximate circle, etc. Wait. In this embodiment, by receiving the first input from the user and obtaining graphic information according to the first input, the electronics can stitch N images directly according to the graphic information input by the user, making the stitching process more efficient.
进一步地,上述获取图形信息,还可以包括以下步骤:Further, obtaining the graphic information above may also include the following steps:
获取摄像头在获取N张图像过程中的移动轨迹;Obtain the movement track of the camera in the process of obtaining N images;
根据移动轨迹确定图形信息。Graphic information is determined according to the movement trajectory.
在一可选实施例中,用户无需在拍摄界面手动输入图形信息,而是在拍摄过程中,通过预设的传感器获取电子设备的位置信息,从而根据位置信息确定电子设备的移动轨迹,进而根据电子设备的移动轨迹确定图形信息。具体地,可以在检测到摄像头处于拍摄状态的情况下,电子设备上的传感器实时采集电子设备的位置信息,直到摄像头退出拍摄状态,根据获取到的位置信息和对应的采集时间点,可以确定出摄像头在整个拍摄过程中的移动轨迹。需要说明的是,此处的传感器可以是电子设备中自带的传感器,如重力加速度传感器、陀螺仪、电子罗盘传感器等等,也可以是外接的传感器,本申请不做具体限定。在确定电子设备的移动轨迹后,可以将移动轨迹作为图像信息。In an optional embodiment, the user does not need to manually input graphic information on the shooting interface, but during the shooting process, obtains the position information of the electronic device through a preset sensor, so as to determine the movement trajectory of the electronic device according to the position information, and then according to the position information. The movement trajectory of the electronic device determines the graphic information. Specifically, when it is detected that the camera is in the shooting state, the sensor on the electronic device collects the position information of the electronic device in real time until the camera exits the shooting state. According to the obtained position information and the corresponding collection time point, it can be determined that The movement track of the camera during the entire shooting process. It should be noted that the sensor here can be a built-in sensor in an electronic device, such as a gravitational acceleration sensor, a gyroscope, an electronic compass sensor, etc., or an external sensor, which is not specifically limited in this application. After the movement trajectory of the electronic device is determined, the movement trajectory can be used as image information.
在本实施例中,图形信息可以根据电子设备在拍摄过程中的移动轨迹确定,无需用户单独设置,从而减少了用户的操作难度,便于用户轻松的得到图形信息。In this embodiment, the graphic information can be determined according to the movement trajectory of the electronic device during the shooting process, and no separate setting by the user is required, thereby reducing the difficulty of the user's operation and facilitating the user to easily obtain the graphic information.
进一步地,上述步骤102、根据图形信息,对N张图像进行拼接,以得目标图像,具体包括以下步骤:Further, in the above step 102, according to the graphic information, N images are spliced to obtain the target image, which specifically includes the following steps:
获取图形信息的M个候选图形,M为正整数;Obtain M candidate graphics of graphics information, where M is a positive integer;
对N张图像进行识别,并将识别的N张图像分别按照图形信息和M个候选图形的形状进行拼接,得到初始图像和M个候选图像,其中,在N张图像存在重复部分的情况下,在拼接过程中对N张图像的重复部分进行去重处理;对初始图像和M个候选图像进行显示;Identify N images, and splicing the identified N images according to the graphic information and the shapes of the M candidate graphics respectively, to obtain the initial image and M candidate images. During the splicing process, the repeated parts of N images are deduplicated; the initial image and M candidate images are displayed;
接收用户的第二输入,根据第二输入从初始图像和M个候选图像中确定目标图像;receiving a second input from the user, and determining a target image from the initial image and the M candidate images according to the second input;
其中,M个候选图形的形状为电子设备根据预设识别算法和图形信息确定得到。The shapes of the M candidate graphics are determined by the electronic device according to a preset recognition algorithm and graphics information.
需要说明的是,此处的图形信息为根据电子设备的移动轨迹确定的图形信息。由于用户在移动电子设备时,容易出现抖动或者移动不规则的情况,因而可以在获取电子设备的实际移动轨迹后,可以通过预设识别算法对图形信息进行识别,从而识别出与图形信息相似的其他更加规则或者无波动的图形,作为候选图像,供用户选择。此处的M为任意正整数,本申请不做具体限定。It should be noted that the graphic information here is graphic information determined according to the movement track of the electronic device. Since the user is prone to jitter or irregular movement when moving the electronic device, after obtaining the actual movement trajectory of the electronic device, the graphic information can be identified by a preset recognition algorithm, so as to identify the graphic information similar to the graphic information. Other more regular or non-fluctuating graphics are used as candidate images for the user to choose. M here is any positive integer, which is not specifically limited in this application.
在获得图形信息、图形信息的M个候选图形和N张图像后,可以对N张图像的图像内容进行识别,再根据图形信息和M个候选图形分别对识别后的N张图像进行拼接,最终得到与该图形信息所示的形状相匹配的初始图像,以及与M个候选图形相匹配的M个候选图像。需要说明的是,在拼接过程中,可以通过预设的识图算法对N张图像中的重复部分进行识别,并对重复部分进行去重处理,最终生成初始图像和M个候选图像。最后将初始图像和M个候选图像显示在电子设备的显示界面,以供用户选择,这样用户可以从一个初始图像和M个候选图像中确定目标图像。在一实施例中,初始图像和候选图像的显示界面如图8所示,在图8所示的显示界面至少包含有一张初始图像和多张候选图像,当用户对当前显示界面的图像均不满意的情况下,可通过左右滑动或者点击预设控件,进入下一界面中选择,由此给用户提供较多的选择空间。After obtaining the graphic information, M candidate graphics and N images of the graphic information, the image content of the N images can be identified, and then the identified N images are spliced according to the graphic information and the M candidate graphics, and finally An initial image matching the shape shown by the graphic information, and M candidate images matching the M candidate graphics are obtained. It should be noted that, during the splicing process, a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate an initial image and M candidate images. Finally, the initial image and the M candidate images are displayed on the display interface of the electronic device for selection by the user, so that the user can determine the target image from the initial image and the M candidate images. In one embodiment, the display interface of the initial image and the candidate image is shown in FIG. 8 . The display interface shown in FIG. 8 includes at least one initial image and multiple candidate images. If you are satisfied, you can swipe left or right or click the preset control to enter the next interface for selection, thereby providing users with more choices.
在本实施例中,根据电子设备的实际移动轨迹,确定图形信息和M个候选图形,并根据图形信息和M个候选图形生成初始图像和M个候选图像,以供用户参考选择,从而提高了目标图像的选择空间。In this embodiment, graphics information and M candidate graphics are determined according to the actual movement track of the electronic device, and an initial image and M candidate graphics are generated according to the graphics information and the M candidate graphics for the user to select for reference, thereby improving the performance of the user. The selection space for the target image.
参见图7,图7是本发明实施例提供的图像拍摄方法的流程图之三,图 像拍摄方法,具体包括步骤:Referring to Fig. 7, Fig. 7 is the third flow chart of the image capturing method provided by the embodiment of the present invention, the image capturing method specifically includes the steps:
步骤701、获取摄像头在获取N张图像过程中的移动轨迹。Step 701: Acquire the movement track of the camera in the process of acquiring N images.
在检测到摄像头处于拍摄状态的情况下,电子设备上的传感器实时采集电子设备的位置信息,直到摄像头退出拍摄状态,根据获取到的位置信息和对应的采集时间点,可以确定出摄像头在整个拍摄过程中的移动轨迹。需要说明的是,此处的传感器可以是电子设备中自带的传感器,如重力加速度传感器、陀螺仪、电子罗盘传感器等等,也可以是外接的传感器,本申请不做具体限定。When it is detected that the camera is in the shooting state, the sensor on the electronic device collects the position information of the electronic device in real time until the camera exits the shooting state. movement trajectory during the process. It should be noted that the sensor here can be a built-in sensor in an electronic device, such as a gravitational acceleration sensor, a gyroscope, an electronic compass sensor, etc., or an external sensor, which is not specifically limited in this application.
步骤702、根据移动轨迹确定图形信息。Step 702: Determine graphic information according to the movement track.
步骤703、获取图形信息的M个候选图形,M为正整数。Step 703: Obtain M candidate graphics of graphics information, where M is a positive integer.
在确定图形信息后,可以通过预设识别算法对图形信息进行识别,从而识别出与图形信息相似的其他更加规则或者无波动的图形,作为候选图像,供用户选择。此处的M为任意正整数,本申请不做具体限定。例如,当图形信息为圆形时,可以通过预设识别算法,确定与圆形相似的椭圆等作为候选图像。After the graphic information is determined, the graphic information can be identified by a preset recognition algorithm, so as to identify other more regular or non-fluctuating graphics similar to the graphic information as candidate images for the user to select. M here is any positive integer, which is not specifically limited in this application. For example, when the graphic information is a circle, an ellipse similar to a circle can be determined as a candidate image through a preset recognition algorithm.
步骤704、获取摄像头拍摄的N张图像,N为正整数。Step 704: Acquire N images captured by the camera, where N is a positive integer.
上述N张图像的获取方式,可以是将电子设备的拍摄模式设置成预设的连拍模块,在预设的连拍模式下每隔预设时长获取一次图像,由此获取到N张图像;也可以是用户在移动电子设备的过程中,多次触发拍照按钮获取到N张图像。需要说明的是,若采用电子设备中预设的连拍模式获取N张图像,则需要在拍摄前对电子设备的拍摄模式进行设置,如图4所示,用户可以点击拍摄界面中的“设置”按钮410,从图4所示的拍摄界面跳转至图5所示的设置页面,由此用户可以在设置页面对需要的连拍模式进行选择,例如,如图5所示,连拍模式包括普通模式和人工智能(Artificial Intelligence,简称AI)拼图模式,普通模式是指将连拍过程中获取到的N张图像单独保存并显示,而AI拼图模式是指将连拍过程中获取到的N张图像进行AI识别拼接后 保存并显示。The acquisition method of the above-mentioned N images may be that the shooting mode of the electronic device is set to a preset continuous shooting module, and in the preset continuous shooting mode, an image is acquired every preset time length, thereby acquiring N images; It may also be that the user triggers the camera button multiple times to acquire N images during the process of moving the electronic device. It should be noted that if the preset continuous shooting mode in the electronic device is used to obtain N images, the shooting mode of the electronic device needs to be set before shooting, as shown in Figure 4, the user can click the "Settings" in the shooting interface. ” button 410 to jump from the shooting interface shown in FIG. 4 to the setting page shown in FIG. 5 , so that the user can select the desired continuous shooting mode on the setting page. For example, as shown in FIG. 5 , the continuous shooting mode Including normal mode and artificial intelligence (Artificial Intelligence, AI for short) jigsaw mode, normal mode refers to saving and displaying the N images obtained during continuous shooting, while AI jigsaw mode refers to the continuous shooting process. N images are saved and displayed after AI recognition and stitching.
步骤705、对N张图像进行识别,并将识别的N张图像分别按照图形信息和M个候选图形的形状进行拼接,得到初始图像和M个候选图像。Step 705: Identify the N images, and splicing the identified N images according to the graphic information and the shapes of the M candidate graphics, respectively, to obtain the initial image and the M candidate images.
在获得图形信息、图形信息的M个候选图形和N张图像后,可以对N张图像的图像内容进行识别,再根据图形信息和M个候选图形分别对识别后的N张图像进行拼接,最终得到与该图形信息所示的形状相匹配的初始图像,以及与M个候选图形相匹配的M个候选图像。需要说明的是,在拼接过程中,可以通过预设的识图算法对N张图像中的重复部分进行识别,并对重复部分进行去重处理,最终生成初始图像和M个候选图像。After obtaining the graphic information, M candidate graphics and N images of the graphic information, the image content of the N images can be identified, and then the identified N images are spliced according to the graphic information and the M candidate graphics, and finally An initial image matching the shape shown by the graphic information, and M candidate images matching the M candidate graphics are obtained. It should be noted that, during the splicing process, a preset image recognition algorithm can be used to identify the repeated parts in the N images, and the repeated parts can be de-duplicated to finally generate an initial image and M candidate images.
步骤706、对初始图像和M个候选图像进行显示。Step 706: Display the initial image and the M candidate images.
步骤707、接收用户的第二输入,根据第二输入从初始图像和M个候选图像中确定目标图像。Step 707: Receive the second input from the user, and determine the target image from the initial image and the M candidate images according to the second input.
将一个初始图像和M个候选图像显示在电子设备的显示界面,以供用户选择,从一个初始图像和M个候选图像中确定目标图像。在一实施例中,初始图像和候选图像的显示界面如图8所示,在图8所示的显示界面至少包含有一张初始图像和多张候选图像,当用户对当前显示界面的图像均不满意的情况下,可通过左右滑动或者点击预设控件,进入下一界面中选择,由此给用户提供较多的选择空间。An initial image and M candidate images are displayed on the display interface of the electronic device for selection by the user, and a target image is determined from the initial image and the M candidate images. In one embodiment, the display interface of the initial image and the candidate image is shown in FIG. 8 . The display interface shown in FIG. 8 includes at least one initial image and multiple candidate images. If you are satisfied, you can swipe left or right or click the preset control to enter the next interface for selection, thereby providing users with more choices.
需要说明的是,上述步骤701和步骤703并不构成对这两个步骤的先后顺序的限定,步骤701可以在步骤703之前或者之后执行,也可以同时执行,本申请不做具体限定。It should be noted that the above steps 701 and 703 do not constitute a limitation on the sequence of these two steps. Step 701 may be performed before or after step 703, or may be performed simultaneously, which is not specifically limited in this application.
在本实施例中,根据电子设备的实际移动轨迹,确定图形信息和候选图形,并根据图形信息和候选图形生成初始图像和候选图像,以供用户参考选择,从而提高了目标图像的选择空间。同时,图形信息可以根据电子设备的移动轨迹确定,无需用户单独设置,从而减少了用户的操作难度,便于用户轻松的得到目标图像。In this embodiment, graphics information and candidate graphics are determined according to the actual movement trajectory of the electronic device, and initial images and candidate graphics are generated according to the graphics information and candidate graphics for reference selection by the user, thereby increasing the selection space of target images. At the same time, the graphic information can be determined according to the movement track of the electronic device, without the need for the user to set up separately, thereby reducing the difficulty of the user's operation and facilitating the user to easily obtain the target image.
需要说明的是,本申请实施例提供的图像拍摄方法,执行主体可以为图像拍摄装置,或者该图像拍摄装置中的用于执行图像拍摄方法的控制模块。本申请实施例中以图像拍摄装置执行图像拍摄方法为例,说明本申请实施例提供的图像拍摄装置。It should be noted that, in the image capturing method provided by the embodiments of the present application, the execution subject may be an image capturing device, or a control module in the image capturing device for executing the image capturing method. In the embodiment of the present application, the image capturing device provided by the embodiment of the present application is described by taking the image capturing method performed by the image capturing device as an example.
参见图9,图9是本发明实施例提供的图像拍摄装置的结构图之一,如图9所示,该图像拍摄装置900包括:Referring to FIG. 9, FIG. 9 is one of the structural diagrams of an image capturing apparatus provided by an embodiment of the present invention. As shown in FIG. 9, the image capturing apparatus 900 includes:
获取模块901,用于获取图形信息,以及获取摄像头拍摄的N张图像,N为正整数;an acquisition module 901, configured to acquire graphic information, and acquire N images captured by a camera, where N is a positive integer;
拼接模块902,用于根据图形信息,对N张图像进行拼接,以得目标图像,目标图像的形状与图形信息所示的形状相匹配。The splicing module 902 is used for splicing N images according to the graphic information to obtain a target image, and the shape of the target image matches the shape shown by the graphic information.
进一步地,获取模块901包括:Further, the acquisition module 901 includes:
处理子模块,用于接收用户的第一输入,根据第一输入获取图形信息。The processing sub-module is configured to receive the first input of the user, and obtain graphic information according to the first input.
进一步地,获取模块901还包括:Further, the acquisition module 901 also includes:
第一显示子模块,用于将图形信息的提示信息显示在拍摄界面,提示信息用于提示用户按照图形信息的形状移动电子设备;The first display sub-module is used for displaying the prompt information of the graphic information on the shooting interface, and the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information;
第一获取子模块,用于获取在电子设备移动过程中摄像头拍摄的N张图像。The first acquisition submodule is used to acquire N images captured by the camera during the movement of the electronic device.
进一步地,拼接模块902包括:Further, the splicing module 902 includes:
识别子模块,用于对N张图像进行识别;The identification sub-module is used to identify N images;
第一拼接子模块,用于将识别的N张图像按照图形信息的形状进行拼接,以得目标图像,其中,在N张图像存在重复部分的情况下,在拼接过程中对N张图像的重复部分进行去重处理。The first splicing sub-module is used for splicing the identified N images according to the shape of the graphic information to obtain the target image, wherein, in the case that the N images have repeated parts, the N images are repeated during the splicing process. Partially deduplicated.
进一步地,获取模块901还包括:Further, the acquisition module 901 also includes:
第二获取子模块,用于获取摄像头在获取N张图像过程中的移动轨迹;The second acquisition sub-module is used to acquire the movement track of the camera in the process of acquiring N images;
第一确定子模块,用于根据移动轨迹确定图形信息。The first determination sub-module is used for determining graphic information according to the movement track.
进一步地,拼接模块902还包括:Further, the splicing module 902 also includes:
第三获取子模块,用于获取图形信息的M个候选图形,M为正整数;The third acquisition sub-module is used to acquire M candidate graphics of graphics information, where M is a positive integer;
第二拼接子模块,用于对N张图像进行识别,并将识别的N张图像分别按照图形信息和M个候选图形的形状进行拼接,得到初始图像和M个候选图像,其中,在N张图像存在重复部分的情况下,在拼接过程中对N张图像的重复部分进行去重处理;The second splicing sub-module is used to identify N images, and splices the identified N images according to the graphic information and the shapes of the M candidate graphics to obtain the initial image and the M candidate images, wherein, in the N images In the case of repeated parts of the images, the repeated parts of N images are de-duplicated during the splicing process;
第二显示子模块,用于对初始图像和M个候选图像进行显示;The second display submodule is used to display the initial image and the M candidate images;
第二确定子模块,用于接收用户的第二输入,根据第二输入从初始图像和M个候选图像中确定目标图像;a second determination submodule, configured to receive a second input from the user, and determine a target image from the initial image and the M candidate images according to the second input;
其中,M个候选图形的形状为电子设备根据预设识别算法和图形信息确定得到。The shapes of the M candidate graphics are determined by the electronic device according to a preset recognition algorithm and graphics information.
本发明实施例的图像拼接装置,在获取图形信息和N张图像后,可以根据图形信息,对N张图像进行拼接,得到目标图像。这样可以根据获取到的图形信息,自动将N张图像拼接成图形信息对应的形状,使得目标图像的形状可以随着图形信息的形状变化为变化,从而提高了拍摄的趣味性和用户体验。In the image splicing device according to the embodiment of the present invention, after acquiring graphic information and N images, N images can be spliced according to the graphic information to obtain a target image. In this way, N images can be automatically spliced into shapes corresponding to the graphic information according to the acquired graphic information, so that the shape of the target image can change with the shape of the graphic information, thereby improving the fun of shooting and user experience.
本申请实施例中的图像拼接装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The image stitching device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的图像拼接装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The image stitching device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
本申请实施例提供的图像拼接装置能够实现上述图像拍摄方法实施例实现的各个过程,为避免重复,这里不再赘述。The image stitching apparatus provided in the embodiment of the present application can implement each process implemented by the above-mentioned image capturing method embodiment, and to avoid repetition, details are not described here.
可选的,如图10所示,本申请实施例还提供一种电子设备1000,包括处理器1001,存储器1002,存储在存储器1002上并可在处理器1001上运行的程序或指令,该程序或指令被处理器1001执行时实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 10 , an embodiment of the present application further provides an electronic device 1000, including a processor 1001, a memory 1002, a program or instruction stored in the memory 1002 and executable on the processor 1001, the program Or when the instruction is executed by the processor 1001, each process of the above image capturing method embodiments can be implemented, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
图11为实现本申请实施例的一种电子设备的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
该电子设备1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元1108、存储器1109、以及处理器1110等部件。The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110, etc. part.
本领域技术人员可以理解,电子设备1100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the electronic device 1100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 1110 through a power management system, so that the power management system can manage charging, discharging, and power consumption. consumption management and other functions. The structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device. The electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
其中,处理器1110,用于获取图形信息,以及获取摄像头拍摄的N张图像,N为正整数;根据图形信息,对N张图像进行拼接,以得目标图像,目标图像的形状与图形信息所示的形状相匹配。Among them, the processor 1110 is used for acquiring graphic information and acquiring N images captured by the camera, where N is a positive integer; according to the graphic information, the N images are spliced to obtain a target image whose shape is related to the graphic information. match the shape shown.
进一步地,用户输入单元1107,用于接收用户的第一输入,处理器1110,还用于根据第一输入获取图形信息。Further, the user input unit 1107 is configured to receive the first input of the user, and the processor 1110 is further configured to acquire graphic information according to the first input.
进一步地,显示单元1106,用于将图形信息的提示信息显示在拍摄界面,提示信息用于提示用户按照图形信息的形状移动电子设备;处理器1110,获取在电子设备移动过程中摄像头拍摄的N张图像。Further, the display unit 1106 is used to display the prompt information of the graphic information on the shooting interface, and the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information; the processor 1110 is used to obtain the N images shot by the camera during the movement of the electronic device. image.
进一步地,处理器1110,还用于对N张图像进行识别;将识别的N张图 像按照图形信息的形状进行拼接,以得目标图像,其中,在N张图像存在重复部分的情况下,在拼接过程中对N张图像的重复部分进行去重处理。进一步地,处理器1110,还用于获取摄像头在获取N张图像过程中的移动轨迹;根据移动轨迹确定图形信息。Further, the processor 1110 is also used to identify the N images; splicing the identified N images according to the shape of the graphic information to obtain the target image, wherein, in the case that the N images have repeated parts, in the The repeated parts of N images are deduplicated during the stitching process. Further, the processor 1110 is further configured to acquire the movement trajectory of the camera in the process of acquiring N images; and determine the graphic information according to the movement trajectory.
进一步地,处理器1011,还用于获取图形信息的M个候选图形,M为正整数;对N张图像进行识别,并将识别的N张图像分别按照图形信息和M个候选图形的形状进行拼接,得到初始图像和M个候选图像,其中,在N张图像存在重复部分的情况下,在拼接过程中对N张图像的重复部分进行去重处理;显示单元1106,还用于对初始图像和M个候选图像进行显示;用户输入单元1107,还用于接收用户的第二输入,处理器1011,还用于根据第二输入从初始图像和M个候选图像中确定目标图像。Further, the processor 1011 is also used to obtain M candidate graphics of graphics information, where M is a positive integer; identify the N images, and carry out the identification according to the graphics information and the shapes of the M candidate graphics respectively. Splicing to obtain an initial image and M candidate images, wherein, in the case of repeated parts of the N images, de-duplication processing is performed on the repeated parts of the N images during the splicing process; the display unit 1106 is also used for the initial image. and the M candidate images are displayed; the user input unit 1107 is further configured to receive the second input from the user, and the processor 1011 is further configured to determine the target image from the initial image and the M candidate images according to the second input.
本发明实施例的电子设备,在获取图形信息和N张图像后,可以根据图形信息,对N张图像进行拼接,得到目标图像。这样可以根据获取到的图形信息,自动将N张图像拼接成图形信息对应的形状,使得目标图像的形状可以随着图形信息的形状变化为变化,从而提高了拍摄的趣味性和用户体验。In the electronic device of the embodiment of the present invention, after acquiring the graphic information and the N images, the N images can be spliced according to the graphic information to obtain the target image. In this way, N images can be automatically spliced into shapes corresponding to the graphic information according to the obtained graphic information, so that the shape of the target image can change with the shape of the graphic information, thereby improving the fun of shooting and user experience.
应理解的是,本申请实施例中,输入单元1104可以包括图形处理器(Graphics Processing Unit,GPU)11041和麦克风11042,图形处理器11041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图像或视频的图像数据进行处理。显示单元1106可包括显示面板11061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板11061。用户输入单元1107包括触控面板11071以及其他输入设备11072。触控面板11071,也称为触摸屏。触控面板11071可包括触摸检测装置和触摸控制器两个部分。其他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器1109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器1110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操 作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。It should be understood that, in this embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 is used to communicate with the image capture device ( Such as camera) to obtain still images or video image data for processing. The display unit 1106 may include a display panel 11061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1107 includes a touch panel 11071 and other input devices 11072 . The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts, a touch detection device and a touch controller. Other input devices 11072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again. Memory 1109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1110.
本申请实施例还提供一种可读存储介质,可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium. When the program or instruction is executed by a processor, each process of the above image capturing method embodiments can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here.
其中,处理器为上述实施例中的电子设备中的处理器。可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述图像拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above image capturing method embodiments. Each process can achieve the same technical effect. In order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in the reverse order depending on the functions involved. To perform functions, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to some examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述 实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods of the various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of this application, without departing from the scope of protection of the purpose of this application and the claims, many forms can be made, which all fall within the protection of this application.

Claims (17)

  1. 一种图像拍摄方法,所述方法包括:An image capturing method, the method comprising:
    获取图形信息,以及获取所述摄像头拍摄的N张图像,所述N为正整数;Obtain graphic information, and obtain N images captured by the camera, where N is a positive integer;
    根据所述图形信息,对所述N张图像进行拼接,以得目标图像,所述目标图像的形状与所述图形信息所示的形状相匹配。According to the graphic information, the N images are spliced to obtain a target image, and the shape of the target image matches the shape shown by the graphic information.
  2. 根据权利要求1所述的方法,其中,所述获取图形信息,包括:The method according to claim 1, wherein the acquiring graphics information comprises:
    接收用户的第一输入,根据所述第一输入获取所述图形信息。A first input from a user is received, and the graphic information is acquired according to the first input.
  3. 根据权利要求2所述的方法,其中,所述获取所述摄像头拍摄的N张图像,包括:The method according to claim 2, wherein the acquiring N images captured by the camera comprises:
    将所述图形信息的提示信息显示在拍摄界面,所述提示信息用于提示用户按照所述图形信息的形状移动电子设备;Displaying prompt information of the graphic information on the shooting interface, where the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information;
    获取在所述电子设备移动过程中所述摄像头拍摄的N张图像。N images captured by the camera during the movement of the electronic device are acquired.
  4. 根据权利要求3所述的方法,其中,所述根据所述图形信息,对所述N张图像进行拼接,以得目标图像,包括:The method according to claim 3, wherein, according to the graphic information, the N images are spliced to obtain a target image, comprising:
    对所述N张图像进行识别;Identify the N images;
    将识别的所述N张图像按照所述图形信息的形状进行拼接,以得目标图像,其中,在所述N张图像存在重复部分的情况下,在所述拼接过程中对所述N张图像的重复部分进行去重处理。Splicing the identified N images according to the shape of the graphic information to obtain a target image, wherein, in the case that the N images have repeated parts, the N images are spliced during the splicing process. Duplicate parts are deduplicated.
  5. 根据权利要求1所述的方法,其中,所述获取图形信息,包括:The method according to claim 1, wherein the acquiring graphics information comprises:
    获取所述摄像头在获取所述N张图像过程中的移动轨迹;acquiring the movement track of the camera in the process of acquiring the N images;
    根据所述移动轨迹确定所述图形信息。The graphic information is determined according to the movement track.
  6. 根据权利要求5所述的方法,其中,所述根据所述图形信息,对所述N张图像进行拼接,以得目标图像,包括:The method according to claim 5, wherein, according to the graphic information, stitching the N images to obtain the target image, comprising:
    获取所述图形信息的M个候选图形,所述M为正整数;Obtain M candidate graphics of the graphics information, where M is a positive integer;
    对所述N张图像进行识别,并将识别的所述N张图像分别按照所述图形信息和所述M个候选图形的形状进行拼接,得到初始图像和M个候选图像,其中,在所述N张图像存在重复部分的情况下,在所述拼接过程中对所述N 张图像的重复部分进行去重处理;Identify the N images, and splicing the identified N images according to the graphic information and the shapes of the M candidate graphics respectively, to obtain an initial image and M candidate images, wherein, in the In the case where there are repeated parts of the N images, de-duplication processing is performed on the repeated parts of the N images during the splicing process;
    对所述初始图像和所述M个候选图像进行显示;displaying the initial image and the M candidate images;
    接收用户的第二输入,根据所述第二输入从所述初始图像和所述M个候选图像中确定所述目标图像;receiving a second input from the user, and determining the target image from the initial image and the M candidate images according to the second input;
    其中,所述M个候选图形的形状为电子设备根据预设识别算法和所述图形信息确定得到。The shapes of the M candidate graphics are determined by the electronic device according to a preset recognition algorithm and the graphics information.
  7. 一种图像拍摄装置,所述装置包括:An image capturing device, the device includes:
    获取模块,用于获取图形信息,以及获取所述摄像头拍摄的N张图像,所述N为正整数;an acquisition module, used for acquiring graphic information, and acquiring N images captured by the camera, where N is a positive integer;
    拼接模块,用于根据所述图形信息,对所述N张图像进行拼接,以得目标图像,所述目标图像的形状与所述图形信息所示的形状相匹配。The splicing module is used for splicing the N images according to the graphic information to obtain a target image, and the shape of the target image matches the shape shown by the graphic information.
  8. 根据权利要求7所述的图像拍摄装置,其中,所述获取模块包括:The image capturing device according to claim 7, wherein the acquiring module comprises:
    处理子模块,用于接收用户的第一输入,根据所述第一输入获取所述图形信息。The processing submodule is configured to receive the first input of the user, and obtain the graphic information according to the first input.
  9. 根据权利要求8所述的图像拍摄装置,其中,所述获取模块还包括:The image capturing device according to claim 8, wherein the acquisition module further comprises:
    第一显示子模块,用于将所述图形信息的提示信息显示在拍摄界面,所述提示信息用于提示用户按照所述图形信息的形状移动电子设备;a first display sub-module, configured to display the prompt information of the graphic information on the shooting interface, where the prompt information is used to prompt the user to move the electronic device according to the shape of the graphic information;
    第一获取子模块,用于获取在所述电子设备移动过程中所述摄像头拍摄的N张图像。The first acquisition sub-module is configured to acquire N images captured by the camera during the movement of the electronic device.
  10. 根据权利要求9所述的图像拍摄装置,其中,所述拼接模块包括:The image capturing device according to claim 9, wherein the splicing module comprises:
    识别子模块,用于对所述N张图像进行识别;an identification sub-module for identifying the N images;
    第一拼接子模块,用于将识别的所述N张图像按照所述图形信息的形状进行拼接,以得目标图像,其中,在所述N张图像存在重复部分的情况下,在所述拼接过程中对所述N张图像的重复部分进行去重处理。The first splicing sub-module is used for splicing the identified N images according to the shape of the graphic information to obtain a target image, wherein, in the case that the N images have repeated parts, in the splicing In the process, the repeated parts of the N images are deduplicated.
  11. 根据权利要求7所述的图像拍摄装置,其中,所述获取模块还包括:The image capturing device according to claim 7, wherein the acquisition module further comprises:
    第二获取子模块,用于获取所述摄像头在获取所述N张图像过程中的移动轨迹;a second acquisition sub-module, configured to acquire the movement track of the camera in the process of acquiring the N images;
    第一确定子模块,用于根据所述移动轨迹确定所述图形信息。The first determination submodule is configured to determine the graphic information according to the movement track.
  12. 根据权利要求11所述的图像拍摄装置,其中,所述拼接模块还包括:The image capturing device according to claim 11, wherein the splicing module further comprises:
    第三获取子模块,用于获取所述图形信息的M个候选图形,所述M为正整数;The third acquisition sub-module is used to acquire M candidate graphics of the graphics information, where M is a positive integer;
    第二拼接子模块,用于对所述N张图像进行识别,并将识别的所述N张图像分别按照所述图形信息和所述M个候选图形的形状进行拼接,得到初始图像和M个候选图像,其中,在所述N张图像存在重复部分的情况下,在所述拼接过程中对所述N张图像的重复部分进行去重处理;The second splicing sub-module is used for identifying the N images, and splicing the identified N images according to the graphic information and the shapes of the M candidate graphics respectively, to obtain the initial image and the M candidate graphics. candidate images, wherein, in the case of repeated parts of the N images, de-duplication processing is performed on the repeated parts of the N images during the splicing process;
    第二显示子模块,用于对所述初始图像和所述M个候选图像进行显示;a second display submodule, configured to display the initial image and the M candidate images;
    第二确定子模块,用于接收用户的第二输入,根据所述第二输入从所述初始图像和所述M个候选图像中确定所述目标图像;a second determination submodule, configured to receive a second input from the user, and determine the target image from the initial image and the M candidate images according to the second input;
    其中,所述M个候选图形的形状为电子设备根据预设识别算法和所述图形信息确定得到。The shapes of the M candidate graphics are determined by the electronic device according to a preset recognition algorithm and the graphics information.
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的图像拍摄方法的步骤。An electronic device, comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being executed by the processor to achieve as claimed in claims 1-6 The steps of any one of the image capturing methods.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的图像拍摄方法的步骤。A readable storage medium, on which a program or an instruction is stored, and when the program or instruction is executed by a processor, the steps of the image capturing method according to any one of claims 1-6 are implemented.
  15. 一种芯片,包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的方法的步骤。A chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being used for running programs or instructions to implement the steps of the method as claimed in any one of claims 1 to 6.
  16. 一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1至6中任一项所述的方法的步骤。A computer program product stored in a non-volatile storage medium, the program product being executed by at least one processor to implement the steps of the method of any one of claims 1 to 6.
  17. 一种电子设备,被配置为执行如权利要求1至6中任一项所述的方法的步骤。An electronic device configured to perform the steps of the method of any one of claims 1 to 6.
PCT/CN2021/132365 2020-11-24 2021-11-23 Image capture method and apparatus, electronic device, and storage medium WO2022111458A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011329825.XA CN112437231B (en) 2020-11-24 2020-11-24 Image shooting method and device, electronic equipment and storage medium
CN202011329825.X 2020-11-24

Publications (1)

Publication Number Publication Date
WO2022111458A1 true WO2022111458A1 (en) 2022-06-02

Family

ID=74694085

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/132365 WO2022111458A1 (en) 2020-11-24 2021-11-23 Image capture method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN112437231B (en)
WO (1) WO2022111458A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115328357A (en) * 2022-08-15 2022-11-11 北京达佳互联信息技术有限公司 Captured image processing method and device, electronic device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437231B (en) * 2020-11-24 2023-11-14 维沃移动通信(杭州)有限公司 Image shooting method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015115705A (en) * 2013-12-10 2015-06-22 シャープ株式会社 Image formation device, image formation system, and image formation method
CN109064526A (en) * 2018-06-07 2018-12-21 珠海格力电器股份有限公司 A kind of method and device generating picture mosaic
CN110365917A (en) * 2018-04-11 2019-10-22 京东方科技集团股份有限公司 Image processing method, computer product, display device and computer-readable medium
CN111150414A (en) * 2019-12-31 2020-05-15 南京钜典影像科技有限公司 Medical image processing method and equipment
US20200160525A1 (en) * 2018-04-24 2020-05-21 Boe Technology Group Co., Ltd. Image processing method, apparatus and device, and image display method
CN111405194A (en) * 2020-06-05 2020-07-10 支付宝(杭州)信息技术有限公司 Image processing method and device
CN112437231A (en) * 2020-11-24 2021-03-02 维沃移动通信(杭州)有限公司 Image shooting method and device, electronic equipment and storage medium

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101156684B1 (en) * 2005-08-03 2012-06-14 삼성전자주식회사 Composite imaging method of digital image processing device
KR101723642B1 (en) * 2011-01-31 2017-04-19 삼성전자주식회사 Photographing apparatus for photographing a panorama image and method thereof
CN102647504B (en) * 2011-02-16 2013-07-17 三星电子(中国)研发中心 Method for controlling applications in mobile phone
KR20130101823A (en) * 2012-03-06 2013-09-16 한승묵 Digital device and video call performing method
CN102915184B (en) * 2012-09-18 2017-04-05 百度在线网络技术(北京)有限公司 For the interaction control method of mobile terminal, device and mobile terminal
CN103607539A (en) * 2013-11-21 2014-02-26 联想(北京)有限公司 Information processing method and electronic device
FI3640732T3 (en) * 2013-12-13 2024-01-16 Huawei Device Co Ltd Method and terminal for acquire panoramic image
CN107026973B (en) * 2016-02-02 2020-03-13 株式会社摩如富 Image processing device, image processing method and photographic auxiliary equipment
CN105721757A (en) * 2016-04-28 2016-06-29 努比亚技术有限公司 Device and method for adjusting photographing parameters
CN106331475A (en) * 2016-08-18 2017-01-11 成都英博格科技有限公司 Image acquisition method and device
EP3404913B1 (en) * 2017-05-16 2019-11-06 Axis AB A system comprising a video camera and a client device and a method performed by the same
CN107948523A (en) * 2017-12-19 2018-04-20 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107872623B (en) * 2017-12-22 2019-11-26 维沃移动通信有限公司 A kind of image pickup method, mobile terminal and computer readable storage medium
CN107911621B (en) * 2017-12-28 2020-04-07 深圳市酷开网络科技有限公司 Panoramic image shooting method, terminal equipment and storage medium
CN108805813A (en) * 2018-06-06 2018-11-13 沈文策 A kind of picture joining method and device
CN108933899B (en) * 2018-08-22 2020-10-16 Oppo广东移动通信有限公司 Panorama shooting method, device, terminal and computer readable storage medium
CN109683777B (en) * 2018-12-19 2020-11-17 维沃移动通信有限公司 Image processing method and terminal equipment
CN109474787B (en) * 2018-12-28 2021-05-14 维沃移动通信有限公司 Photographing method, terminal device and storage medium
CN109862267B (en) * 2019-01-31 2020-11-17 维沃移动通信有限公司 Shooting method and terminal equipment
CN110381249A (en) * 2019-06-11 2019-10-25 努比亚技术有限公司 One kind is taken pictures processing method, terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015115705A (en) * 2013-12-10 2015-06-22 シャープ株式会社 Image formation device, image formation system, and image formation method
CN110365917A (en) * 2018-04-11 2019-10-22 京东方科技集团股份有限公司 Image processing method, computer product, display device and computer-readable medium
US20200160525A1 (en) * 2018-04-24 2020-05-21 Boe Technology Group Co., Ltd. Image processing method, apparatus and device, and image display method
CN109064526A (en) * 2018-06-07 2018-12-21 珠海格力电器股份有限公司 A kind of method and device generating picture mosaic
CN111150414A (en) * 2019-12-31 2020-05-15 南京钜典影像科技有限公司 Medical image processing method and equipment
CN111405194A (en) * 2020-06-05 2020-07-10 支付宝(杭州)信息技术有限公司 Image processing method and device
CN112437231A (en) * 2020-11-24 2021-03-02 维沃移动通信(杭州)有限公司 Image shooting method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115328357A (en) * 2022-08-15 2022-11-11 北京达佳互联信息技术有限公司 Captured image processing method and device, electronic device and storage medium

Also Published As

Publication number Publication date
CN112437231A (en) 2021-03-02
CN112437231B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
US11640235B2 (en) Additional object display method and apparatus, computer device, and storage medium
KR102649254B1 (en) Display control method, storage medium and electronic device
WO2021135601A1 (en) Auxiliary photographing method and apparatus, terminal device, and storage medium
WO2022012657A1 (en) Image editing method and apparatus, and electronic device
US10860857B2 (en) Method for generating video thumbnail on electronic device, and electronic device
CN112954210B (en) Photographing method and device, electronic equipment and medium
US10990748B2 (en) Electronic device and operation method for providing cover of note in electronic device
WO2022111458A1 (en) Image capture method and apparatus, electronic device, and storage medium
WO2022161267A1 (en) Video recording method and apparatus
CN110572716B (en) Multimedia data playing method, device and storage medium
WO2022022536A1 (en) Audio playback method, audio playback apparatus, and electronic device
CN112770058B (en) Shooting method, shooting device, electronic equipment and readable storage medium
WO2023284632A1 (en) Image display method and apparatus, and electronic device
CN112492201B (en) Photographing method and device and electronic equipment
WO2022143386A1 (en) Photographing method, photographing device, electronic device and medium
WO2022135290A1 (en) Screenshot capturing method and apparatus, and electronic device
WO2022068806A1 (en) Image processing method and apparatus, and electronic device
WO2023025060A1 (en) Interface display adaptation processing method and apparatus, and electronic device
WO2023072156A1 (en) Photographing method, photographing apparatus, electronic device, and readable storage medium
WO2022143525A1 (en) Video playing method and apparatus, and electronic device
WO2023083089A1 (en) Photographing control display method and apparatus, and electronic device and medium
CN112911147A (en) Display control method, display control device and electronic equipment
WO2022068721A1 (en) Screen capture method and apparatus, and electronic device
WO2022161268A1 (en) Video photographing method and apparatus
WO2022143382A1 (en) Image processing method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21896959

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 26.10.2023)