Shooting calibration method, system, device and storage medium

Adjusting the target image parameters through communication between electronic devices and wearable devices solves the problem of mismatch between the target image and the virtual background in VR shooting, achieves matching between the image and the virtual environment, and improves the user experience.

CN114900624BActive Publication Date: 2024-10-15GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210438331.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2024-10-15
Estimated Expiration
2042-04-25

Smart Images

  • Figure CN114900624B_ABST
    Figure CN114900624B_ABST
Patent Text Reader

Abstract

The present application discloses a shooting calibration method, system, device and storage medium, the method is applied to a shooting calibration system, the shooting calibration system includes an electronic device and a wearable device, including: obtaining a first target object image by shooting with the electronic device, and sending the first target object image to the wearable device; receiving the first target object image sent by the electronic device through the wearable device; if the first target object image does not coincide with the second target object image observed through the wearable device, adjusting the image size parameters of the first target object image, and returning to the execution step: sending the first target object image to the wearable device until the first target object image coincides with the second target object image, and obtaining the target adjustment parameters. The present application solves the technical problem that the target object image shot by the electronic device may not match the virtual background in the head-mounted device, resulting in a poor user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a shooting calibration method, system, device and storage medium. Background Art

[0002] Virtual reality (VR) shooting is a shooting method that synthesizes a target object with a virtual scene. When performing VR shooting, an electronic device and a head-mounted device are required. After the electronic device shoots a first target object image, it is necessary to remove the background from the first target object image and synthesize it with the virtual background of the head-mounted device. However, the first target object image shot by the electronic device may not match the virtual background in the head-mounted device. For example, the first target object image is much larger or smaller than the virtual background, causing the background and the target to appear very inconsistent, which in turn leads to a poor user experience. Summary of the invention

[0003] The main purpose of this application is to provide a shooting calibration method, system, device and storage medium, which aims to solve the technical problem in the prior art that the first target object image captured by the electronic device may not match the virtual background in the head-mounted device, resulting in a poor user experience.

[0004] To achieve the above object, the present application provides a shooting calibration method, which is applied to a shooting calibration system, wherein the shooting calibration system includes an electronic device and a wearable device, wherein the electronic device is communicatively connected with the wearable device, and the shooting calibration method includes:

[0005] Obtaining a first target object image by photographing the electronic device, and sending the first target object image to the wearable device;

[0006] Receiving, by the wearable device, a first target object image sent by the electronic device;

[0007] If the first target object image does not overlap with the second target object image observed through the wearable device, the image size parameters of the first target object image are adjusted, and the execution step is returned to: the first target object image is sent to the wearable device until the first target object image overlaps with the second target object image, and the target adjustment parameters are obtained.

[0008] Optionally, the shooting angle of view and shooting line of sight corresponding to the camera of the electronic device and the wearable device are the same.

[0009] Optionally, the step of obtaining a first target object image by photographing the electronic device and sending the first target object image to the wearable device includes:

[0010] Using a camera in the electronic device to photograph a preset target object to obtain an image of the target object;

[0011] removing the background of the target object image to obtain the first target object image;

[0012] The first target object image is transmitted to the wearable device.

[0013] Optionally, after receiving the first target object image sent by the electronic device through the wearable device, the method further includes:

[0014] Projecting and displaying the first target object image on a lens screen of the wearable device;

[0015] determining an offset between the second target object image and the first target object image;

[0016] Based on the offset, image offset compensation is performed on the first target object image to determine whether the second target object image overlaps with the offset-compensated first target object image.

[0017] Optionally, if the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameter of the first target object image is adjusted, and the execution step of returning to: sending the first target object image to the wearable device until the first target object image overlaps with the second target object image, the step of obtaining the target adjustment parameter includes:

[0018] If the first target image is smaller than the second target image, increasing the image size parameter of the first target image to obtain the first target image after parameter adjustment;

[0019] Return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

[0020] Optionally, if the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameter of the first target object image is adjusted, and the execution step of returning to: sending the first target object image to the wearable device until the first target object image overlaps with the second target object image, the step of obtaining the target adjustment parameter includes:

[0021] If the first target object image is larger than the second target object image, reducing the image size parameter of the first target object image to obtain the first target object image after parameter adjustment;

[0022] Return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

[0023] Optionally, if the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameter of the first target object image is adjusted, and the step of returning to execute: sending the first target object image to the wearable device until the first target object image overlaps with the second target object image, and obtaining the target adjustment parameter step, further comprising:

[0024] Calibrate a camera in the electronic device based on the target adjustment parameter;

[0025] A virtual image of the environment captured by the wearable device in the virtual space is sent to a calibrated electronic device;

[0026] The target image is obtained by photographing the calibrated electronic device, and the environment virtual image sent by the wearable device is received, and the environment virtual image and the target image are superimposed to obtain a composite image.

[0027] The present application also provides a shooting calibration system, which is a virtual system and includes:

[0028] A sending module, configured to obtain a first target object image by photographing the electronic device, and send the first target object image to the wearable device;

[0029] A receiving module, configured to receive, through the wearable device, a first target object image sent by the electronic device;

[0030] An adjustment module is used to adjust the image size parameters of the first target object image if the first target object image does not overlap with the second target object image observed through the wearable device, and return to the execution step: sending the first target object image to the wearable device until the first target object image overlaps with the second target object image, thereby obtaining the target adjustment parameters.

[0031] The present application also provides an electronic device, which is a physical device, and includes: a memory, a processor, and a shooting calibration program stored in the memory, and the shooting calibration program is executed by the processor to implement the steps of the above-mentioned shooting calibration method.

[0032] The present application also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores a shooting calibration program, and the shooting calibration program is executed by a processor to implement the steps of the above-mentioned shooting calibration method.

[0033] The present application provides a shooting calibration method, system, device and storage medium. The present application first obtains a first target image by shooting through the electronic device, and sends the first target image to the wearable device, and then receives the first target image sent by the electronic device through the wearable device. If the first target image does not overlap with the second target image observed through the wearable device, the image size parameter of the first target image is adjusted, and the execution step is returned: the first target image is sent to the wearable device until the first target image overlaps with the second target image, and the target adjustment parameter is obtained, so that the second target image observed by the human eye through the lens of the wearable device is compared with the first target image shot by the electronic device. When they do not overlap, the first target image of the electronic device is adjusted until the first target image shot by the electronic device can overlap with the second target image observed through the wearable device, and the overlapping target adjustment parameters are recorded, so as to calibrate the camera of the electronic device based on the target adjustment parameters, so that the calibrated camera is consistent with the size of the object in the virtual environment regardless of the angle it is turned to, thereby improving the user experience effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without any creative work.

[0036] Figure 1 This is a flow chart of the first embodiment of the photographing calibration method of the present application;

[0037] Figure 2 This is a schematic diagram of the communication principle between the electronic device and the wearable device in the embodiment of the present application;

[0038] Figure 3 A schematic diagram of the overlap between the first target image and the second target image in an embodiment of the present application;

[0039] Figure 4This is a schematic diagram of an embodiment of the present application in which the first target image is smaller than the second target image;

[0040] Figure 5 This is a schematic diagram of an embodiment of the present application in which the first target image is larger than the second target image;

[0041] Figure 6 This is a flow chart of a second embodiment of the photographing calibration method of the present application;

[0042] Figure 7 A schematic diagram of the structure of an electronic device of a hardware operating environment involved in an embodiment of the present application;

[0043] Figure 8 Schematic diagram of the functional modules of the calibration system shot for this application.

[0044] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] The main solution of the embodiment of the present application is: obtain the first target object image by shooting the electronic device, and send the first target object image to the wearable device; receive the first target object image sent by the electronic device through the wearable device; if the first target object image does not coincide with the second target object image observed by the wearable device, adjust the image size parameter of the first target object image, and return to the execution step: send the first target object image to the wearable device until the first target object image coincides with the second target object image, and obtain the target adjustment parameter. Therefore, the calibrated camera is consistent with the size of the object in the virtual environment no matter which angle it turns to, thereby improving the user experience.

[0047] Specifically, refer to Figure 1 The present application embodiment provides a shooting calibration method. In a first embodiment of the shooting calibration method of the present application, the shooting calibration method includes:

[0048] Step S10, obtaining a first target object image by photographing the electronic device, and sending the first target object image to the wearable device;

[0049] In this embodiment, it should be noted that the wearable device includes VR, AR and other devices. Preferably, the wearable device is a head-mounted device. The electronic device can be a mobile phone, a tablet computer, a camera, etc. The electronic device is equipped with a camera. Figure 2 , Figure 2 This is a communication principle diagram of an electronic device and a wearable device in an embodiment of the present application. The electronic device and the wearable device are communicatively connected through a preset communication interface, and the preset communication interface includes but is not limited to an Internet port, a universal serial bus USB interface, a serial port, a VGA (Video Graphics Array) interface, an HDMI (High Definition Multimedia) wired interface, and WiFi, Bluetooth wireless interfaces and other interfaces.

[0050] It should be further explained that the line of sight and viewing angle corresponding to the camera of the electronic device and the wearable device are the same, and the user can observe the image of a preset target object through the lens of the wearable device. The first target object image is an image including a preset target object, wherein the preset target object includes a person, an animal, or a real scene, etc.

[0051] A target image of a preset target object is obtained by photographing with a camera in the electronic device, and then the target image is separated into foreground / background to obtain a foreground image, and the foreground image is used as the first target image, and then the first target image is transmitted to the wearable device.

[0052] The above step S10: obtaining a first target object image by photographing the electronic device and sending the first target object image to the wearable device includes:

[0053] Step S11, photographing a preset target object through a camera in the electronic device to obtain an image of the target object;

[0054] Step S12: removing the background of the target object image to obtain the first target object image, and transmitting the first target object image to the wearable device.

[0055] In this embodiment, specifically, a preset target object is first photographed by a camera of an electronic device according to a preset shooting angle and shooting line of sight to obtain a target object image, and then the background of the target object image is removed by a preset foreground / background separation method. For example, an optical flow algorithm / low-rank decomposition / mixed Gaussian modeling and other algorithms are used to perform foreground / background separation on the target object image acquired by the camera to obtain the background of the first target object image, and the first target object image is uploaded to the wearable device to project the first target object image onto the lens of the wearable device.

[0056] Step S20, receiving, by the wearable device, a first target object image sent by the electronic device;

[0057] Wherein, after the above step S20: receiving, by the wearable device, the first target object image sent by the electronic device, the method further includes:

[0058] Step A10, projecting and displaying the first target image on the lens screen of the wearable device;

[0059] Step A10, determining an offset between the second target object image and the first target object image;

[0060] Step A10: performing image offset compensation on the first target object image based on the offset to determine whether the second target object image overlaps with the offset-compensated first target object image.

[0061] In this embodiment, it should be noted that due to the imaging principle of the wearable device, there will be an offset between the image projected onto the wearable device and the image seen through the wearable device. Specifically, the first target object image sent by the electronic device is received by the wearable device, and then the first target object image is analyzed. Based on the imaging focal length designed for the wearable device, the offset of the first target object image relative to the second target object image observed through the wearable device can be calculated. Based on the offset, the first target object image is compensated for image offset during imaging, so that the user sees the first target object image after offset compensation on the lens screen of the wearable device, thereby more accurately judging whether the second target object image coincides with the first target object image after offset compensation.

[0062] Step S30, if the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameters of the first target object image are adjusted, and the execution step is returned to: the first target object image is sent to the wearable device until the first target object image overlaps with the second target object image, and the target adjustment parameters are obtained.

[0063] In this embodiment, it should be noted that, in one possible implementation, the time at which the second target image observed by the user through the lens of the wearable device and the first target image obtained by the electronic device are the same, specifically, when the user wears the wearable device, the line of sight and the angle of view of the wearable device and the electronic device toward the preset target are adjusted to be consistent, and then the preset target is photographed by the electronic device to obtain the corresponding first target image, and the second target image is obtained by observing the preset target through the wearable device. In another possible implementation, the time at which the second target image observed by the user through the lens of the wearable device and the target image photographed by the electronic device are different, specifically, when the electronic device obtains the shooting instruction, the preset target is photographed by the electronic device to obtain the target image, and then the background of the target image is removed to obtain the first target image, and the first target image is stored, and then when the user wears the wearable device, the electronic device sends the stored first target image to the wearable device and displays it on the lens of the wearable device, and then adjusts the angle of view and line of sight when the wearable device and the electronic device are photographed to be the same, and obtains the second target image of the preset target observed by the human eye.

[0064] Specifically, the first target image displayed on the lens screen of the wearable device is matched with the second target image observed through the wearable device. If so, it proves that the size of the first target image captured by the camera of the current electronic device is the same as the size of the image of the preset target observed by the human eye through the lens of the wearable device. Figure 3 , Figure 3This is a schematic diagram of the overlap of the first target object image and the second target object image in the embodiment of the present application. There is no need to adjust the first target object image of the electronic device. If not, it proves that the size of the first target object image taken by the camera of the current electronic device is inconsistent with the image size of the preset target object observed by the human eye through the lens of the wearable device. At this time, there are two situations. The size of the first target object image is larger than the size of the second target object image or the size of the first target image is smaller than the size of the second target image, so that the image size parameter of the first target object image is increased or decreased. The operation of adjusting the image size parameter can be adjusted through the volume button of the electronic device. For example, the image can be enlarged or reduced by the volume button of the electronic device, or the user can manually enlarge or reduce the image on the screen of the electronic device. The specific method of adjusting the image is not specifically limited here. Then return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and obtain the target adjustment parameter, wherein, in another embodiment, during the overlap matching process, if the distance between the size of the first target object image and the size of the second target object image is detected to be within a preset distance threshold, it proves that the first target object image and the second target object image are successfully matched, wherein the preset distance threshold can be set according to actual conditions, for example, the preset distance threshold is set to 1 mm, and no specific limitation is made here. In addition, after obtaining the target adjustment parameter, the camera in the electronic device can be calibrated based on the target adjustment parameter, so that the calibrated camera is consistent with the size of the object in the virtual environment regardless of the angle it turns to, thereby improving the user experience.

[0065] Wherein, if the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameter of the first target object image is adjusted, and the execution step is returned: the first target object image is sent to the wearable device until the first target object image overlaps with the second target object image, and the step of obtaining the target adjustment parameter includes:

[0066] Step S31: if the first target object image is smaller than the second target object image, increase the image size parameter of the first target object image to obtain the first target object image after parameter adjustment, and return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

[0067] In this embodiment, refer to Figure 4 , Figure 4This is a schematic diagram of an embodiment of the present application in which the first target object image is smaller than the second target object image, wherein the outer rectangle represents the lens of the wearable device, the image with thicker lines represents the second target object image, and the image with smaller lines represents the first target object image. Specifically, if the size of the first target object image is smaller than the size of the second target object image, it proves that the image size parameter of the first target object image obtained by taking the current electronic device is too small. Therefore, it is necessary to increase the image size parameter of the first target object image, so as to send the first target object image after the parameter adjustment to the wearable device, and then compare the first target object image with the second target image again until the first target image overlaps with the second target image, and then use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

[0068] Step S32: if the first target object image is larger than the second target object image, reduce the image size parameter of the first target object image to obtain the first target object image after parameter adjustment; return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

[0069] In this embodiment, refer to Figure 5 , Figure 5 This is a schematic diagram of an embodiment of the present application in which the first target object image is larger than the second target object image, wherein the outer rectangle represents the lens of the wearable device, the image with thicker lines represents the second target object image, and the image with smaller lines represents the first target object image. Specifically, if the size of the first target object image is larger than the size of the second target object image, it proves that the image size parameter of the first target object image obtained by taking the current electronic device is too large. Therefore, it is necessary to reduce the image size parameter of the first target object image, so as to send the first target object image after the parameter adjustment to the wearable device, and then compare the first target object image with the second target image again until the first target image overlaps with the second target image, and then use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

[0070] The embodiment of the present application realizes comparison of the second target object image observed by the human eye through the lens of the wearable device with the first target object image taken by the electronic device through the above scheme. When they do not overlap, the first target object image of the electronic device is adjusted until the first target object image taken by the electronic device can overlap with the second target object image observed through the wearable device, and the overlapping target adjustment parameters are recorded, so as to calibrate the camera of the electronic device based on the target adjustment parameters, so that the calibrated camera can keep consistent with the size of the object in the virtual environment no matter which angle it is turned to, thereby improving the user experience.

[0071] Further, refer to Figure 6 Based on the first embodiment of the present application, in another embodiment of the present application, in the above step S30: if the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameter of the first target object image is adjusted, and the execution step is returned to: the first target object image is sent to the wearable device until the first target object image overlaps with the second target object image, and after the target adjustment parameter is obtained, it also includes:

[0072] Step B10, calibrating a camera in the electronic device based on the target adjustment parameter;

[0073] Step B20, capturing a virtual image of the environment in the virtual space through the wearable device, and sending the virtual image of the environment to a calibrated electronic device;

[0074] Step B30: photographing a target image through the calibrated electronic device, receiving an environmental virtual image sent by the wearable device, and superimposing the environmental virtual image and the target image to obtain a composite image.

[0075] In this embodiment, specifically, based on the target adjustment parameters, the camera in the electronic device is calibrated, and then the virtual image of the environment is captured by the wearable device in the virtual space, and the target image is captured by the calibrated electronic device. The wearable device will transmit the virtual image of the environment to the electronic device, and then the electronic device will remove the background of the target image, use the target image after the background is removed as the foreground, use the virtual image of the environment captured by the wearable device as the background, superimpose the foreground and the background, and output the composite image. Since the capture is performed using the calibrated electronic device, the captured target object matches the virtual environment of the wearable device. Furthermore, when the user wears the wearable device, the electronic device sends the stored composite image to the wearable device, and the user can see the composite image on the screen of the wearable device, so that VR shooting can be completed with only the electronic device and the wearable device, which is convenient and fast, and improves the user experience.

[0076] Through the above-mentioned scheme, the embodiment of the present application realizes shooting using a calibrated electronic device, and the captured target image matches the virtual environment of the wearable device, so that the obtained composite image is more in line with the actual situation, thereby improving the user experience.

[0077] Reference Figure 7 , Figure 7 It is a schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiment of the present application.

[0078] like Figure 7 As shown, the electronic device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0079] Optionally, the electronic device may further include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WIFI interface).

[0080] Those skilled in the art will understand that Figure 7The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0081] like Figure 7 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, and a shooting calibration program. The operating system is a program that manages and controls the hardware and software resources of the electronic device, and supports the operation of the shooting calibration program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the shooting calibration system.

[0082] exist Figure 7 In the electronic device shown, the processor 1001 is used to execute the shooting calibration program stored in the memory 1005 to implement the steps of any of the above-mentioned shooting calibration methods.

[0083] The specific implementation of the electronic device of the present application is basically the same as the embodiments of the above-mentioned shooting calibration method, and will not be repeated here.

[0084] In addition, please refer to Figure 8 , Figure 8 : is a functional module diagram of the shooting calibration system of the present application. The present application also provides a shooting calibration system, and the shooting calibration system includes:

[0085] A sending module, configured to obtain a first target object image by photographing the electronic device, and send the first target object image to the wearable device;

[0086] A receiving module, configured to receive, through the wearable device, a first target object image sent by the electronic device;

[0087] An adjustment module is used to adjust the image size parameters of the first target object image if the first target object image does not overlap with the second target object image observed through the wearable device, and return to the execution step: sending the first target object image to the wearable device until the first target object image overlaps with the second target object image, thereby obtaining the target adjustment parameters.

[0088] Optionally, the sending module is further used for:

[0089] Using a camera in the electronic device to photograph a preset target object to obtain an image of the target object;

[0090] The background of the target object image is removed to obtain the first target object image, and the first target object image is transmitted to the wearable device.

[0091] Optionally, the shooting calibration system is further used for:

[0092] Projecting and displaying the first target object image on a lens screen of the wearable device;

[0093] determining an offset between the second target object image and the first target object image;

[0094] Based on the offset, image offset compensation is performed on the first target object image to determine whether the second target object image overlaps with the offset-compensated first target object image.

[0095] Optionally, the correction module is further used for:

[0096] If the first target image is smaller than the second target image, increasing the image size parameter of the first target image to obtain the first target image after parameter adjustment;

[0097] Return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

[0098] Optionally, the correction module is further used for:

[0099] If the first target object image is larger than the second target object image, reducing the image size parameter of the first target object image to obtain the first target object image after parameter adjustment;

[0100] Return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

[0101] Optionally, the shooting calibration system is further used for:

[0102] Calibrate a camera in the electronic device based on the target adjustment parameter;

[0103] A virtual image of the environment captured by the wearable device in the virtual space is sent to a calibrated electronic device;

[0104] The target image is obtained by photographing the calibrated electronic device, and the environment virtual image sent by the wearable device is received, and the environment virtual image and the target image are superimposed to obtain a composite image.

[0105] The specific implementation of the photographing and calibration system of the present application is basically the same as the embodiments of the photographing and calibration method described above, and will not be repeated here.

[0106] An embodiment of the present application provides a storage medium, which is a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, and the one or more programs can also be executed by one or more processors to implement the steps of any of the above-mentioned shooting calibration methods.

[0107] The specific implementation of the computer-readable storage medium of the present application is basically the same as the embodiments of the above-mentioned shooting calibration method, and will not be repeated here.

[0108] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A shooting calibration method, characterized in that: The shooting calibration method is applied to a shooting calibration system, the shooting calibration system includes an electronic device and a wearable device, the electronic device is communicatively connected with the wearable device, and the shooting calibration method includes: Obtaining a first target object image by photographing the electronic device, and sending the first target object image to the wearable device; Receiving, by the wearable device, a first target object image sent by the electronic device; Projecting and displaying the first target object image on a lens screen of the wearable device; determining an offset between the second target object image and the first target object image; Based on the offset, performing image offset compensation on the first target image to determine whether the second target image overlaps with the offset-compensated first target image; If the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameter of the first target object image is adjusted, and the execution step is returned to: the first target object image is sent to the wearable device until the first target object image overlaps with the second target object image, and the target adjustment parameter is obtained; Calibrate a camera in the electronic device based on the target adjustment parameter; A virtual image of the environment captured by the wearable device in the virtual space is sent to a calibrated electronic device; The target image is obtained by photographing the calibrated electronic device, and the environment virtual image sent by the wearable device is received, and the environment virtual image and the target image are superimposed to obtain a composite image.

2. The shooting calibration method according to claim 1, characterized in that: The camera of the electronic device and the wearable device have the same shooting angle of view and shooting sight line.

3. The shooting calibration method according to claim 1, characterized in that: The step of obtaining a first target object image by photographing the electronic device and sending the first target object image to the wearable device comprises: Using a camera in the electronic device to photograph a preset target object to obtain an image of the target object; The background of the target object image is removed to obtain the first target object image, and the first target object image is transmitted to the wearable device.

4. The shooting calibration method according to claim 1, characterized in that: If the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameter of the first target object image is adjusted, and the execution step is returned to: the first target object image is sent to the wearable device until the first target object image overlaps with the second target object image, and the step of obtaining the target adjustment parameter includes: If the first target image is smaller than the second target image, increasing the image size parameter of the first target image to obtain the first target image after parameter adjustment; Return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

5. The shooting calibration method according to claim 1, characterized in that: If the first target object image does not overlap with the second target object image observed by the wearable device, the image size parameter of the first target object image is adjusted, and the execution step is returned to: the first target object image is sent to the wearable device until the first target object image overlaps with the second target object image, and the step of obtaining the target adjustment parameter includes: If the first target object image is larger than the second target object image, reducing the image size parameter of the first target object image to obtain the first target object image after parameter adjustment; Return to the execution step: send the first target object image to the wearable device until the first target object image overlaps with the second target object image, and use the image size parameter corresponding to the overlap of the images as the target adjustment parameter.

6. A shooting calibration system, characterized in that: The shooting calibration system includes an electronic device and a wearable device, wherein the electronic device is communicatively connected with the wearable device, and the shooting calibration system includes: A sending module, configured to obtain a first target object image by photographing the electronic device, and send the first target object image to the wearable device; A receiving module, configured to receive, through the wearable device, a first target object image sent by the electronic device; An adjustment module is used to project and display the first target object image on the lens screen of the wearable device; determine the offset between the second target object image and the first target object image; based on the offset, perform image offset compensation on the first target object image to determine whether the second target object image coincides with the first target object image after offset compensation. If the first target object image does not coincide with the second target object image observed by the wearable device, adjust the image size parameter of the first target object image and return to the execution step: send the first target object image to the wearable device until the first target object image coincides with the second target object image, obtain the target adjustment parameter, and calibrate the camera in the electronic device based on the target adjustment parameter; capture the virtual image of the environment in the virtual space by the wearable device, and send the virtual image of the environment to the calibrated electronic device; capture the target image by the calibrated electronic device, and receive the virtual image of the environment sent by the wearable device, and superimpose the virtual image of the environment and the target image to obtain a composite image.

7. An electronic device, characterized in that: The electronic device comprises: a camera, a memory, a processor and a shooting calibration program stored in the memory. The photographing calibration program is executed by the processor to implement the steps of the photographing calibration method according to any one of claims 1 to 5.

8. A storage medium, the storage medium being a computer-readable storage medium, characterized in that: The computer-readable storage medium stores a photographing calibration program, and the photographing calibration program is executed by a processor to implement the steps of the photographing calibration method according to any one of claims 1 to 5.