Shooting calibration method, system, device and storage medium
By using the external camera of the wearable device to communicate with the electronic device in the VR shooting system, the size of the target image is adjusted, which solves the problem of mismatch between the target image and the virtual background, achieves shooting consistency at any angle, and improves User experience.
Patent Information
- Application Number
- CN202210439299.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-04-25
AI Technical Summary
In virtual reality (VR) shooting, the target image captured by the electronic device may not match the virtual background in the head-mounted device, resulting in poor user experience.
By installing an external camera in the wearable device to communicate with the electronic device, it is detected whether the target image and the image captured by the external camera overlap. If they do not overlap, an image adjustment instruction is generated to adjust the image size parameters of the target image captured by the electronic device. Until the two coincide, the target adjustment parameters are recorded and the camera of the electronic device is calibrated.
Ensure that the target image captured by the electronic device's camera at any angle is consistent in size with the object in the virtual environment, thereby improving the user experience.
Smart Images

Figure CN114757829B
Abstract
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 the target object image, it is necessary to remove the background of the target object image and synthesize it with the virtual background of the head-mounted device. However, the target object image captured by the electronic device may not match the virtual background in the head-mounted device. For example, the 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, aiming to solve the technical problem in the prior art that the target 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 wearable device is equipped with an external camera, and 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 a first target object image of the electronic device through the wearable device;
[0007] If it is detected by the wearable device that the first target object image and the second target object image captured by the external camera do not overlap, an image adjustment instruction is generated and sent to the electronic device, so that the electronic device adjusts the image size parameters of the first target object image based on the image adjustment instruction, and returns 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 to obtain the target adjustment parameters.
[0008] Optionally, the camera in the electronic device and the external camera in the wearable device have the same shooting angle of view and shooting line of sight.
[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 image to detect whether the second target image overlaps with the offset-compensated first target image.
[0017] Optionally, if the wearable device detects that the first target object image does not overlap with the second target object image captured by the external camera, an image adjustment instruction is generated and sent to the electronic device, so that the electronic device adjusts the image size parameters of the first target object image based on the image adjustment instruction, and returns to the execution step of 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 parameters includes:
[0018] If the first target object image is smaller than the second target object image, sending an image enlargement instruction to the electronic device through the wearable device;
[0019] Receiving the image enlargement instruction through the electronic device, and enlarging the image size parameter of the first target object image based on the image enlargement instruction to obtain the first target object image after the parameter is adjusted;
[0020] 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.
[0021] Optionally, if the wearable device detects that the first target object image does not overlap with the second target object image captured by the external camera, an image adjustment instruction is generated and sent to the electronic device, so that the electronic device adjusts the image size parameters of the first target object image based on the image adjustment instruction, and returns to the execution step of 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 parameters includes:
[0022] If the first target object image is larger than the second target object image, sending an image reduction instruction to the electronic device through the wearable device;
[0023] Receiving the image reduction instruction through the electronic device, and reducing the image size parameter of the first target object image based on the image reduction instruction to obtain the first target object image after the parameter adjustment;
[0024] 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.
[0025] Optionally, if the wearable device detects that the first target object image does not overlap with the second target object image captured by the external camera, an image adjustment instruction is generated and sent to the electronic device, so that the electronic device adjusts the image size parameter of the first target object image based on the image adjustment instruction, and returns to the step of sending the first target object image to the wearable device until the first target object image overlaps with the second target object image, and after the step of obtaining the target adjustment parameter, it also includes:
[0026] Calibrate a camera in the electronic device based on the target adjustment parameter;
[0027] A virtual image of the environment captured by the wearable device in the virtual space is sent to a calibrated electronic device;
[0028] The target image is captured by 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.
[0029] The present application also provides a shooting calibration system, which is a virtual system and includes:
[0030] A receiving module, configured to receive a first target object image of the electronic device through the wearable device;
[0031] An adjustment module is used to generate an image adjustment instruction if it is detected by the wearable device that the first target object image does not overlap with the second target object image captured by the external camera, and send the image adjustment instruction to the electronic device, so that the electronic device can adjust the image size parameters of the first target object image based on the image adjustment instruction, 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 to obtain the target adjustment parameters.
[0032] 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.
[0033] 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.
[0034] The present application provides a shooting calibration method, system, device and storage medium, wherein the shooting calibration method is applied to a shooting calibration system, wherein the shooting calibration system comprises an electronic device and a wearable device, wherein the wearable device is equipped with an external camera, and the electronic device is communicatively connected with the wearable device, wherein the shooting calibration method comprises: obtaining a first target object image by shooting the electronic device, and sending the first target object image to the wearable device, and then receiving the first target object image of the electronic device by the wearable device, and if the wearable device detects that the first target object image does not overlap with the second target object image shot by the external camera, then generating an image adjustment instruction, and sending the image adjustment instruction to the electronic device, so that the electronic device adjusts the image size parameters of the first target object image based on the image adjustment instruction, and returns to execute step :Sending the first target object image to the wearable device until the first target object image coincides with the second target object image, obtaining the target adjustment parameters, realizing the comparison between the second target object image taken by the external camera installed on the wearable device and the first target object image taken by the electronic device, when they do not coincide, the image adjustment instruction is issued, and the image adjustment instruction is sent to the electronic device, so that the electronic device automatically adjusts the first target object image of the electronic device based on the image adjustment instruction, until the first target object image taken by the electronic device can coincide with the second target object image of the external camera, and recording the coincident target adjustment parameters, 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 no matter which angle it is turned to, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] 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.
[0036] 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.
[0037] Figure 1 This is a flow chart of the first embodiment of the photographing calibration method of the present application;
[0038] 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;
[0039] Figure 3A schematic diagram showing the overlap of a first target object image and a second target object image in an embodiment of the present application;
[0040] Figure 4 This 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;
[0041] 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;
[0042] Figure 6 This is a flow chart of a second embodiment of the photographing calibration method of the present application;
[0043] 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;
[0044] Figure 8 Schematic diagram of the functional modules of the calibration system shot for this application.
[0045] 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.
[0046] 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
[0047] 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.
[0048] The main solution of the embodiment of the present application is: obtain the first target object image by shooting through the electronic device, and send the first target object image to the wearable device; receive the first target object image of the electronic device through the wearable device; if the wearable device detects that the first target object image does not overlap with the second target object image shot by the external camera, then generate an image adjustment instruction, and send the image adjustment instruction to the electronic device, so that the electronic device can adjust the image size parameters of the first target object image based on the image adjustment instruction, 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 obtain the target adjustment parameters. 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.
[0049] 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:
[0050] Step S10, obtaining a first target object image by photographing the electronic device, and sending the first target object image to the wearable device;
[0051] 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. An external camera is installed on the outside of the lens of the wearable device, so that the image of the external environment can be captured by the external camera. Figure 2 The electronic device is communicatively connected with the wearable device 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 a WiFi, Bluetooth wireless interface, and the like.
[0052] It should be further explained that the line of sight and viewing angle corresponding to the camera of the electronic device and the external camera of 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.
[0053] 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.
[0054] 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:
[0055] Step S11, photographing a preset target object through a camera in the electronic device to obtain an image of the target object;
[0056] 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.
[0057] 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.
[0058] Step S20, receiving, by the wearable device, a first target object image sent by the electronic device;
[0059] 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:
[0060] Step A10, projecting and displaying the first target image on the lens screen of the wearable device;
[0061] Step A10, determining an offset between the second target object image and the first target object image;
[0062] Step A10: performing image offset compensation on the first target object image based on the offset to detect whether the second target object image overlaps with the offset-compensated first target object image.
[0063] 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 passed through the external camera of 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 passed through the external camera in 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.
[0064] Step S30: If it is detected by the wearable device that the first target object image does not overlap with the second target object image captured by the external camera, an image adjustment instruction is generated and sent to the electronic device, so that the electronic device can adjust the image size parameters of the first target object image based on the image adjustment instruction, 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 to obtain the target adjustment parameters.
[0065] In this embodiment, it should be noted that, in one possible implementation, the time at which the second target image obtained by the external camera of the wearable device and the time at which the first target image is obtained by the electronic device is the same, specifically, the line of sight and the angle of view of the external camera of the wearable device and the camera in 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 first target image, and the preset target is photographed by the external camera of the wearable device to obtain the corresponding second target image. In another possible implementation, the time at which the second target image obtained by the external camera of the wearable device and the time at which the first target image is obtained 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 the line of sight when the external camera of the wearable device and the camera in the electronic device are photographed to be the same, and obtain the second target image.
[0066] Specifically, the first target image displayed on the lens screen of the wearable device is matched with the second target image captured by the external camera. 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 second target image captured by the external camera. 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, and 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 size of the second target object image taken by the external camera. 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, thereby generating an image adjustment instruction, wherein the image adjustment instruction includes an image enlargement instruction and an image reduction instruction, so that the image adjustment instruction is sent to the electronic device through the wearable device, and then the electronic device automatically enlarges or reduces the image size parameter of the first target object image according to the preset adjustment parameter strategy based on the image adjustment instruction. For example, a plurality of different sizes of adjustment image size parameters can be pre-set for adjustment. When the first target object image is aligned with the second target object image, the image size parameter of the first target object image is adjusted to a predetermined size. When the sizes of the target object images differ greatly, they are adjusted according to the larger adjustment image size, and the adjustment image size parameter is gradually reduced, and then the execution step is returned to: the first target object image is sent to the wearable device until the first target object image coincides with the second target object image, and the target adjustment parameter is obtained. In another embodiment, during the coincidence 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 is proved that the first target object image and the second target object image are successfully matched. 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 is turned to, thereby improving the user experience.
[0067] The above step S30 may include:
[0068] Step a1: if the first target object image is smaller than the second target object image, generating the image enlargement instruction, and sending the image enlargement instruction to the electronic device through the wearable device;
[0069] Step a2, receiving the image enlargement instruction through the electronic device, and based on the image enlargement instruction, enlarging the image size parameter of the first target object image to obtain the first target object image after the parameter adjustment;
[0070] Step a3, returning 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, and using the image size parameter corresponding to the overlap of the images as the target adjustment parameter.
[0071] In this embodiment, refer to Figure 4 , Figure 4 This 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 captured by the current electronic device is too small, and the image size parameter of the first target object image needs to be increased. Therefore, an image enlargement instruction is generated, and then the image enlargement instruction is sent to the electronic device, and then the electronic device increases the image size parameter of the first target object image based on the image enlargement instruction, so that the first target object image after the parameter adjustment is sent to the wearable device, and then the first target object image is compared with the second target image again until the first target image overlaps with the second target image, and then the image size parameter corresponding to the overlap of the images is used as the target adjustment parameter.
[0072] The above step S30 may include:
[0073] Step b1, if the first target object image is larger than the second target object image, generating the image reduction instruction, and sending the image reduction instruction to the electronic device through the wearable device;
[0074] Step b2, receiving the image reduction instruction through the electronic device, and reducing the image size parameters of the first target object image based on the image reduction instruction to obtain the first target object image after the parameters are adjusted;
[0075] Step b3, 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.
[0076] In this embodiment, refer to Figure 5 , Figure 5This 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 captured by the current electronic device is too large, and the image size parameter of the first target object image needs to be reduced. Therefore, an image reduction instruction is generated, and then the image reduction instruction is sent to the electronic device, and then the electronic device increases the image size parameter of the first target object image based on the image reduction instruction, so that the first target object image after the parameter adjustment is sent to the wearable device, and then the first target object image is compared with the second target image again until the first target image overlaps with the second target image, and then the image size parameter corresponding to the overlap of the images is used as the target adjustment parameter.
[0077] The embodiment of the present application realizes comparison of the second target object image captured by an external camera installed on the wearable device with the first target object image captured by the electronic device through the above scheme. When they do not overlap, an image adjustment instruction is issued and the image adjustment instruction is sent to the electronic device, so that the electronic device automatically adjusts the first target object image of the electronic device based on the image adjustment instruction until the first target object image captured by the electronic device can overlap with the second target object image of the external camera, and records the overlapping target adjustment parameters, 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 no matter which angle it is turned to, thereby improving the user experience.
[0078] Further, refer to Figure 6 Based on the first embodiment of the present application, in another embodiment of the present application, after the above step S30, it also includes:
[0079] Step B10, calibrating a camera in the electronic device based on the target adjustment parameter;
[0080] 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;
[0081] 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.
[0082] 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.
[0083] The embodiment of the present application uses the above solution to achieve shooting with a calibrated electronic device, so that the captured target image matches the virtual environment of the wearable device, so that the obtained synthetic image is more in line with the actual situation, improving the user experience. Figure 6 , Figure 6 It is a schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiment of the present application.
[0084] 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.
[0085] 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).
[0086] 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.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] 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:
[0091] 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;
[0092] A receiving module, configured to receive a first target object image of the electronic device through the wearable device;
[0093] An adjustment module is used to generate an image adjustment instruction if it is detected by the wearable device that the first target object image does not overlap with the second target object image captured by the external camera, and send the image adjustment instruction to the electronic device, so that the electronic device can adjust the image size parameters of the first target object image based on the image adjustment instruction, 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 to obtain the target adjustment parameters.
[0094] Optionally, the sending module is further used for:
[0095] Using a camera in the electronic device to photograph a preset target object to obtain an image of the target object;
[0096] 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.
[0097] Optionally, the shooting calibration system is further used for:
[0098] Projecting and displaying the first target object image on a lens screen of the wearable device;
[0099] determining an offset between the second target object image and the first target object image;
[0100] 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.
[0101] Optionally, the correction module is further used for:
[0102] If the first target object image is smaller than the second target object image, generating the image enlargement instruction, and sending the image enlargement instruction to the electronic device through the wearable device;
[0103] Receiving the image enlargement instruction through the electronic device, and enlarging the image size parameter of the first target object image based on the image enlargement instruction to obtain the first target object image after the parameter is adjusted;
[0104] 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.
[0105] Optionally, the correction module is further used for:
[0106] If the first target object image is larger than the second target object image, generating the image reduction instruction, and sending the image reduction instruction to the electronic device through the wearable device;
[0107] Receiving the image reduction instruction through the electronic device, and reducing the image size parameter of the first target object image based on the image reduction instruction to obtain the first target object image after the parameter adjustment;
[0108] 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.
[0109] Optionally, the shooting calibration system is further used for:
[0110] Calibrate a camera in the electronic device based on the target adjustment parameter;
[0111] A virtual image of the environment captured by the wearable device in the virtual space is sent to a calibrated electronic device;
[0112] 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.
[0113] The specific implementation of the shooting calibration system of the present application is basically the same as the embodiments of the above-mentioned shooting calibration method, and will not be repeated here.
[0114] 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.
[0115] 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.
[0116] 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 wearable device is equipped with an external camera, 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 a first target object image of the electronic device through the wearable device; If it is detected by the wearable device that the first target object image does not overlap with the second target object image captured by the external camera, an image adjustment instruction is generated and sent to the electronic device, so that the electronic device adjusts the image size parameter of the first target object image based on the image adjustment instruction, and returns 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, and obtaining the target adjustment parameter; Calibrate a camera in the electronic device based on the target adjustment parameter; Using the wearable device to capture a virtual image of the environment in a virtual space, and sending the virtual image of the environment to a calibrated electronic device; The target image is photographed by 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 in the electronic device and the external camera in 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: After the first target object image sent by the electronic device is received by the wearable device, the method further includes: 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, image offset compensation is performed on the first target image to detect whether the second target image overlaps with the offset-compensated first target image.
5. The shooting calibration method according to claim 1, characterized in that: The image adjustment instruction includes an image enlargement instruction, If the wearable device detects that the first target object image does not overlap with the second target object image captured by the external camera, an image adjustment instruction is generated and sent to the electronic device, so that the electronic device adjusts the image size parameter of the first target object image based on the image adjustment instruction, and returns 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. The step of obtaining the target adjustment parameter includes: If the first target object image is smaller than the second target object image, generating the image enlargement instruction, and sending the image enlargement instruction to the electronic device through the wearable device; Receiving the image enlargement instruction through the electronic device, and enlarging the image size parameter of the first target object image based on the image enlargement instruction to obtain the first target object image after the parameter is adjusted; 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. The shooting calibration method according to claim 1, characterized in that: The image adjustment instruction includes an image reduction instruction. If the wearable device detects that the first target object image does not overlap with the second target object image captured by the external camera, an image adjustment instruction is generated and sent to the electronic device, so that the electronic device adjusts the image size parameter of the first target object image based on the image adjustment instruction, and returns 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. The step of obtaining the target adjustment parameter includes: If the first target object image is larger than the second target object image, generating the image reduction instruction, and sending the image reduction instruction to the electronic device through the wearable device; Receiving the image reduction instruction through the electronic device, and reducing the image size parameter of the first target object image based on the image reduction instruction to obtain the first target object image after the 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.
7. A shooting calibration system, characterized in that: The shooting calibration system comprises: 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 a first target object image of the electronic device through the wearable device; An adjustment module is used to generate an image adjustment instruction if it is detected by the wearable device that the first target object image does not overlap with the second target object image captured by the external camera, and send the image adjustment instruction to the electronic device, so that the electronic device can adjust the image size parameters of the first target object image based on the image adjustment instruction, 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 to obtain the target adjustment parameters; calibrating the camera in the electronic device based on the target adjustment parameters; capturing an environmental virtual image in a virtual space by the wearable device, and sending the environmental virtual image to the calibrated electronic device; capturing a target image by the calibrated electronic device, and receiving the environmental virtual image sent by the wearable device, and superimposing the environmental virtual image and the target image to obtain a composite image.
8. 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 6.
9. 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 6.
