Method for realizing virtual camera, related electronic equipment and storage medium

By writing and reading images between storage media, virtual camera simulation is realized, which solves the problem of difficult reuse of sensor data in the field of autonomous driving, reduces test costs, and improves the output stability and synchronization of virtual cameras. ability.

CN118632135APending Publication Date: 2024-09-10BEIJING TUSEN ZHITU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310205833.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-10

Smart Images

  • Figure CN118632135A
    Figure CN118632135A
Patent Text Reader

Abstract

The invention relates to a method for implementing a virtual camera, a related electronic device and a storage medium. The method for realizing the virtual camera comprises the following steps: sequentially writing multiple frames of images into a second storage medium from a first storage medium according to a first frequency; when the multiple frames of images are sequentially written into a second storage medium from the first storage medium according to a first frequency, the multiple frames of images are sequentially read from the second storage medium according to a second frequency; adjusting each frame of image read from the second storage medium according to preset parameters; and outputting each frame of adjusted image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to camera simulation, and more particularly to a method for implementing a virtual camera, related electronic devices, and storage media. Background Art

[0002] In the field of autonomous driving, it is necessary to test various devices of the vehicle (such as the electronic control unit ECU) and the algorithms therein. Usually, the electronic control unit is installed on the autonomous driving vehicle, and the vehicle is repeatedly driven on the test road. During the driving process of the vehicle, the sensors installed on it (such as cameras) will obtain environmental data (such as images) around the vehicle. These image data will be provided to the electronic control unit in real time to test the electronic control unit and the algorithms therein. However, such a testing method is costly. It is expected that the data collected by the vehicle sensors can be reused to reduce the cost of testing the electronic control unit and the algorithms therein. Summary of the invention

[0003] The present disclosure provides a method for implementing a virtual camera, a related electronic device, and a storage medium.

[0004] The present disclosure provides, in one aspect, a method for implementing a virtual camera, comprising:

[0005] Writing multiple frames of images from the first storage medium to the second storage medium in sequence according to the first frequency;

[0006] During the period of sequentially writing the multiple frames of images from the first storage medium to the second storage medium at the first frequency, sequentially reading the multiple frames of images from the second storage medium at the second frequency;

[0007] Adjusting each frame of the image read from the second storage medium according to predetermined parameters;

[0008] Output the adjusted image of each frame.

[0009] In another aspect, the present disclosure provides an electronic device comprising

[0010] Memory, and

[0011] A processor is configured to execute the method according to the present disclosure.

[0012] In yet another aspect, the present disclosure provides a computer-readable storage medium storing program instructions, which, when executed by a processor, causes the processor to execute a method according to the present disclosure.

[0013] According to the method for implementing a virtual camera disclosed in the present invention, environmental data (e.g., images) collected by sensors during vehicle driving can be provided to the virtual camera disclosed in the present invention, and then the virtual camera outputs the images to the electronic control unit to test the electronic control unit and the algorithms therein, thereby achieving the purpose of reusing the data collected by the vehicle sensors.

[0014] In addition, according to the present disclosure, the image is first written from the first storage medium to the second storage medium, and then the written image is read from the second storage medium to process the image. The first storage medium stores a large number of images collected by the sensor during the driving of the vehicle, and the second storage medium stores fewer images than the first storage medium. Reading images from the second storage medium can have a faster reading speed than reading images from the first storage medium, and the time interval between two adjacent image readings can remain basically unchanged, so that the virtual camera output image can have a high frame rate. At the same time, the stability of the virtual camera output image can be achieved, and better synchronization between virtual cameras can be achieved when there are multiple virtual cameras.

[0015] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0017] Figure 1 A schematic diagram showing a vehicle traveling on a road according to the present disclosure;

[0018] Figure 2 A block diagram showing an example camera according to the present disclosure;

[0019] Figure 3 A schematic diagram showing an electronic device according to an example of the present disclosure;

[0020] Figure 4A A schematic diagram showing a system for implementing a virtual camera according to an exemplary embodiment of the present application;

[0021] Figure 4B A schematic diagram showing an electronic device for implementing a virtual camera according to an example of the present disclosure;

[0022] Figure 5 A flowchart showing a method for implementing a virtual camera according to an exemplary embodiment of the present disclosure is shown;

[0023] Figure 6 A schematic diagram illustrating image reading and writing operations according to an exemplary embodiment of the present disclosure.

[0024] Wherever possible, identical reference numerals have been used to designate identical elements that are common to the figures. It is contemplated that elements disclosed in one implementation may be beneficially utilized on other implementations without specific recitation. DETAILED DESCRIPTION

[0025] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0026] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the context of the description, they may also refer to different instances. In the present disclosure, unless otherwise specified, when describing a physical quantity as any value between A and B, the value of the physical quantity can be A or B.

[0027] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0028] Figure 11 is a schematic diagram of a vehicle 100 traveling on a road 130. The vehicle 100 may be a car, truck, motorcycle, bus, recreational vehicle, amusement park vehicle, tram, golf cart, train, trolley bus, or other vehicle. The vehicle 100 may be operated in full or in part in an autonomous driving mode. The vehicle 100 may control itself in the autonomous driving mode, for example, the vehicle 100 may determine a current state of the vehicle and a current state of an environment in which the vehicle is located, determine a predicted behavior of at least one other vehicle in the environment, determine a confidence level corresponding to a likelihood that the at least one other vehicle will perform the predicted behavior, and control the vehicle 100 itself based on the determined information. While in the autonomous driving mode, the vehicle 100 may operate without human interaction.

[0029] The vehicle 100 may include various sensors for sensing information about the environment and conditions of the vehicle, such as cameras 103 and 104. In addition to the camera, the sensors on the vehicle 100 may also include an inertial measurement unit (IMU), a global navigation satellite system (GNSS) transceiver (e.g., a global positioning system (GPS) transceiver), a radio detection and ranging (RADAR) sensor, a laser detection and ranging (LIDAR) sensor, an acoustic sensor, an ultrasonic sensor, etc. It will also be appreciated by those skilled in the art that although Figure 1 Two cameras 103 and 104 are shown in FIG. 1 , but the vehicle 100 may include more or fewer cameras.

[0030] The vehicle 100 may also include a control device 106. The control device 106 may include, for example, a computing platform (e.g., a server) and / or an electronic control unit (ECU). The computing platform (or electronic control unit) can control some or all functions of the vehicle 100. The computing platform (or electronic control unit) may include, for example, an autonomous driving control unit, which may be composed of one or more algorithm modules for identifying, evaluating, and avoiding or crossing potential obstacles in the environment where the vehicle 100 is located. In some embodiments, the autonomous driving control unit is used to combine data from sensors to determine the driving path or trajectory of the vehicle 100.

[0031] The computing platform (or electronic control unit) may include at least one processor (which may include at least one microprocessor) and a memory (a memory is an example of a computer-readable storage medium), and the processor executes processing instructions stored in the memory. In some embodiments, the memory may contain processing instructions (e.g., program logic) executed by the processor to implement various functions of the vehicle 100. In addition to storing processing instructions, the memory may store a variety of information or data, such as images received from a camera. Some or all of the functions of the autonomous driving control unit may be implemented using program code instructions residing in the memory and executed by the processor.

[0032] The vehicle 100 may also include a communication system not shown in the figure, which may provide a way for the vehicle 100 to communicate with one or more devices or other vehicles around it. In an exemplary embodiment, the communication system may communicate with one or more devices directly or through a communication network. The communication system may be, for example, a wired or wireless communication system. For example, the communication system may use 3G cellular communication (e.g., CDMA, EVDO, GSM / GPRS) or 4G cellular communication (e.g., WiMAX or LTE), and may also use 5G cellular communication. Optionally, the communication system may communicate with a wireless local area network (WLAN) (e.g., using ). Information / data may be transmitted between the communication system of the vehicle 100 and a computing device (e.g., computing device 120) remotely located relative to the vehicle 100 via the network 114. The network 114 may be a single network, or a combination of at least two different networks. The network 114 may include, but is not limited to, a local area network, a wide area network, a public network, a private network, or a combination of several thereof.

[0033] During the driving process of the vehicle 100, the sensors of the vehicle 100, such as the cameras 103 and 104, continuously collect data related to the surrounding environment of the vehicle. The sensors of the vehicle 100 can also add a timestamp to the data collected, and the timestamp records the time when the data is collected. For example, the camera can add a timestamp to each frame of image collected by it to record the time when the frame of image is collected. The sensors of the vehicle 100 can also send the collected data to the control device 106. The control device 106 can add a timestamp to the received data to record the time when the control device 106 receives the data. For example, the control device 106 can add a timestamp to each frame of image to record the time when the control device 106 receives the frame of image.

[0034] The control device 106 may store the data (e.g., images) with the time stamp added in a local memory of the control device 106, or transmit the data to the computing device 120 via the network 114 to be stored in the memory 121 of the computing device 120. The control device 106 may also store the parameters of the sensors (e.g., cameras 103 and 104) that collected the data in its memory in association with the data. The control device 106 may transmit the sensor parameters to the computing device 120 via the network 114 to be stored in the memory 121 of the computing device 120.

[0035] Figure 2 2 is a block diagram showing a camera 200 according to an exemplary embodiment of the present disclosure. The camera 200 may be Figure 1 Examples of camera 103 and / or camera 104 of vehicle 100 are shown. Figure 2As shown, the camera 200 includes an optical unit 210, an image sensor 220, and an image signal processor 230. The optical unit 210 may include, for example, one or more lenses. The camera 200 may also include Figure 2 Devices such as memory, serializer, and power supply not shown.

[0036] The optical unit 210 collects images from the object being photographed (eg Figure 1 The image sensor 220 receives light from the vehicle 100 (such as objects around the vehicle 100 shown in the figure) and guides the light to the image sensor 220. The image sensor 220 performs an imaging operation, that is, performs photoelectric conversion to generate image data. The image sensor 220 provides the generated image data to the image signal processor 230. The image signal processor 230 performs predetermined processing on the image data received from the image sensor 220 and can transmit the processed image data to, for example, Figure 1 The control device 106 is shown.

[0037] In one example, all or part of the functions of the image signal processor 230 may be implemented by the control device 106 . In this case, the camera 103 (or the camera 104 ) may not include the image signal processor 230 .

[0038] Figure 3 is a schematic diagram of an electronic device 300 according to an exemplary embodiment of the present application. The electronic device 300 may be Figure 1 An example of a computing device 120 or a control device 106 is shown. The electronic device 300 may be a server, a personal computer (PC), an electronic control unit ECU (e.g., a domain controller), etc. The example electronic device 300 may include a data processor 302 (e.g., a system on chip (SoC), a general processing core, a graphics core, and optional other processing logic) and a memory 304 that may communicate with each other via a bus 306 or other data transmission system. The electronic device 300 may also include various input / output (I / O) devices or interfaces 303 and a network interface 305. The network interface 305 may use 3G cellular communications (e.g., CDMA, EVDO, GSM / GPRS) or 4G cellular communications (e.g., WiMAX or LTE), and may also use 5G cellular communications. Optionally, the network interface 305 may communicate with a wireless local area network (WLAN) (e.g., using ). In an example embodiment, the network interface 305 may include or support substantially any wired and / or wireless communication and data processing mechanism by which information / data may be communicated between the electronic device 300 and another device or system via a network.

[0039] Memory 304 is an example of a computer-readable storage medium. The term computer-readable storage medium may be understood to include a single non-transitory medium or multiple non-transitory media (e.g., centralized or distributed databases and / or associated caches and computing systems) that store one or more instruction sets. The term computer-readable storage medium may also be understood to include any non-transitory medium that can store, encode, or carry an instruction set for execution by a machine and cause the machine to perform any one or more of the methods of the various embodiments or that can store, encode, or carry a data structure utilized by or associated with such an instruction set. The term computer-readable storage medium may therefore be understood to include, but is not limited to, solid-state memory, optical media, and magnetic media.

[0040] The electronic device 300 is used to implement Figure 1 When the control device 106 is used, the input / output (I / O) device or interface 303 of the electronic device 300 may include a deserializer to connect with the serializers of the cameras 103 and 104 (when the cameras 103 and 104 have serializers). The electronic device 300 is used to implement Figure 1 When the computing device 120 is used, the memory 304 may be an example of the memory 121 .

[0041] Typically, when the control device 106 and the algorithm therein are to be tested, the vehicle 100 is repeatedly driven on the test road 130. During the driving process of the vehicle, the sensors installed thereon (such as cameras 103 and 104) will obtain environmental data (such as images) around the vehicle, and these image data will be provided to the control device 106 in real time to test the control device 106 and the algorithm therein. However, such a testing method is costly. It is expected that the data collected by the vehicle sensors can be reused to reduce the cost of testing the control device and the algorithm therein.

[0042] The present disclosure provides a method for implementing a virtual camera (i.e., a method for simulating a camera), which can reuse data collected by vehicle sensors to test a control device and the algorithms therein. The control device receives images from the virtual camera just as it receives images from a real camera on a moving vehicle.

[0043] In addition, the inventors of the present application have noticed that real cameras (such as Figure 1The cameras 103 and 104 shown in the figure output images stably at a certain high frequency, and multiple cameras need to output images synchronously. The method for realizing a virtual camera provided by the present disclosure first writes an image from a first storage medium to a second storage medium, and then reads the written image from the second storage medium. By reasonably configuring the second storage medium, the image can be read from the second storage medium at a faster speed than that from the first storage medium, and the time interval between two adjacent image readings can remain basically unchanged. This enables the virtual camera to output images stably like a real camera, and when there are multiple virtual cameras, the image output can be synchronized between the virtual cameras.

[0044] Figure 4A 4 is a schematic diagram of a system for implementing a virtual camera according to an exemplary embodiment of the present application. As shown in FIG4 , one or more electronic devices, such as electronic devices 410 and 420, are included between the computing device 120 and the control device 106. These electronic devices between the computing device 120 and the control device 106 may have the same structure and function. However, different electronic devices process images captured by different cameras.

[0045] As mentioned above, Figure 1 The computing device 120 or the control device 106 shown stores images captured by the cameras 103 and 104 when the vehicle 100 is traveling on the test road. When the vehicle 100 returns to the warehouse to update the control device 106 or the autonomous driving control unit therein, the electronic device 410 and / or 420 can be connected to the computing device 120 and the control device 106 respectively to implement the method of the present disclosure, so as to test the updated control device 106 or the updated autonomous driving control unit. For the control device or the autonomous driving control unit therein, the electronic devices 410 and 420 implement the method of the present disclosure just like real cameras (such as cameras 103 and 104), therefore, the electronic devices 410 and 420 can be called virtual cameras when implementing the method of the present disclosure.

[0046] Figure 4B4 is a schematic diagram of an electronic device 400 according to an example embodiment of the present application. Electronic device 400 may be an example of electronic devices 410 and 420. Electronic device 400 may be a server, a personal computer (PC), a laptop computer, a tablet computer, a personal digital assistant (PDA), a cellular phone, a smart phone, a set-top box (STB), etc. Example electronic device 400 may include a processor 401 and a processor 402 that are communicatively connected to each other. Processor 401 and processor 402 may each include, for example, one or more central processing units (CPUs), one or more graphics processing units (GPUs), one or more reduced instruction set computing (RISC) processors, one or more Acorn reduced instruction set computers (Acorn RISC) machine (ARM) processors, one or more complex instruction set computing (CISC) processors, one or more digital signal processors (DSPs), one or more field programmable gate arrays (FPGAs), one or more programmable logic devices (PLDs), one or more application specific integrated circuits (ASICs), or any suitable combination thereof. In one example, processor 401 and processor 402 are different processors. For example, processor 401 is an ARM processor and processor 402 is an FPGA.

[0047] Those skilled in the art will appreciate that, although FIG. 4 shows that the electronic device 400 includes two processors, the electronic device 400 may include more or fewer processors, for example, the electronic device may include only one processor.

[0048] The electronic device 400 may also include a memory 404. The memory 404 is an example of a computer-readable storage medium. The memory 404 may include a high-speed random access memory, such as a static random access memory (SRAM), a dynamic RAM (DRAM), or other random access solid-state memory devices; and may optionally include a non-volatile memory, such as one or more magnetic disk storage devices, one or more optical disk storage devices, one or more flash memory devices, or one or more other non-volatile solid-state storage devices. The DRAM may include, for example, a synchronous DRAM (SDRAM) or a double data rate (DDR) SDRAM. In one example, the memory 404 has a faster data transfer speed than the memory 121 in the computing device 120.

[0049] The term computer-readable storage medium may be understood to include a single non-transitory medium or multiple non-transitory media (e.g., centralized or distributed databases and / or associated caches and computing systems) that store one or more instruction sets. The term computer-readable storage medium may also be understood to include any non-transitory medium that can store, encode, or carry an instruction set for execution by a machine and cause the machine to perform any one or more of the methods of the various embodiments or that can store, encode, or carry a data structure utilized by or associated with such an instruction set. The term computer-readable storage medium may therefore be understood to include, but is not limited to, solid-state memory, optical media, and magnetic media.

[0050] In some embodiments, the memory 404 may store one or more instruction sets, software, firmware, or other processing logic that implements any one or more of the methods or functions described and / or claimed herein. During execution by the electronic device 400, the logic or a portion thereof may also reside completely or at least partially within the processor 401 and / or 402.

[0051] In some embodiments, the electronic device 400 includes a system-on-chip (SoC), which includes a processor 401 (eg, an ARM processor), a processor 402 (eg, an FPGA), and a memory 404 (eg, various DDR memories).

[0052] In some embodiments, the electronic device 400 may also include various input / output (I / O) devices and / or interfaces 403 (e.g., a serializer, a touch screen display, an audio jack, and / or a voice interface) and an optional network interface 405. The serializers of the electronic device 400 may be connected to the deserializer of the control device 106 via a cable. The network interface 405 may use 3G cellular communication (e.g., CDMA, EVDO, GSM / GPRS) or 4G cellular communication (e.g., WiMAX or LTE), and may also use 5G cellular communication. Optionally, the network interface 405 may communicate with a wireless local area network (WLAN) (e.g., using ). In an example embodiment, the network interface 405 may include or support substantially any wired and / or wireless communication and data processing mechanism by which information / data may be communicated between the electronic device 400 and another device or system via the network interface 405.

[0053] In some embodiments, the processor 401 includes a writing module 411 for writing data (e.g., an image) in the memory 404. The processor 402 includes a reading module 412, an adjustment module 413, and an output module 414. The reading module 412 is used to read data (e.g., an image) from the memory 404 and send the read data to the adjustment module 413. The adjustment module 413 adjusts the data received from the reading module 412 and sends the adjusted data to the output module 414. The output module 414 is used to output the adjusted data.

[0054] In one example, the output module 414 can output the adjusted data from the electronic device 400 to other devices or systems (e.g., the control device 106) via an input / output (I / O) device and / or an interface 403 (e.g., a serializer). The write module 411, the read module 412, the adjustment module 413, and any of the output modules 414 can be implemented in hardware, firmware, software, or any combination thereof.

[0055] In one example, the writing module 411 is used to write the image frame by frame from the memory 121 to one or more storage areas of the memory 404 at a first frequency. The reading module 412 is used to read the image written by the writing module 411 from the storage area of ​​the memory 404 frame by frame at a second frequency during the period when the writing module 411 writes the image to the memory 404, and send the frame of image to the adjustment module 413 each time a frame of image is read. The adjustment module 413 is used to adjust the received frame of image according to a predetermined parameter each time a frame of image is received from the reading module 412. Each time the adjustment module 413 completes the adjustment of a frame of image, it sends the adjusted frame of image to the output module 414. The output module 414 is used to output the image received from the adjustment module frame by frame in the order in which it is received.

[0056] Figure 5 is a flowchart of a method for implementing a virtual camera according to an exemplary embodiment of the present disclosure. The method may be Figure 4B The electronic device 400 shown in the figure can execute. The electronic device 400 can execute the simulation method (i.e., the method for realizing a virtual camera) disclosed in the present invention to realize a virtual camera. Figure 5 It should be noted that the following description of the present disclosure takes the camera 104 as an example of the simulation object of the electronic device 400, but those skilled in the art can understand that the present invention is not limited thereto, for example, the simulation object of the electronic device 400 can also be the camera 103.

[0057] like Figure 5As shown, in step 502, the processor 401 of the computing device 400 (or the writing module 411 of the processor 401) writes multiple frames of images from the first storage medium to the second storage medium in sequence according to the first frequency. The first frequency here refers to the number of write operations performed by the processor 401 (or the writing module 411 of the processor 401) per unit time. Each write operation can write one or more frames of images in the second storage medium. In one example, each write operation only writes one frame of image in the second storage medium.

[0058] The processor 401 of the electronic device 400 reads the image captured by the camera 104 from the storage medium (i.e., the first storage medium, such as the memory 121) of the computing device 120, and writes the read image to the second storage medium (e.g., the memory 404) at a predetermined frequency (i.e., the first frequency) and in the order of the timestamps of the images. Then, the processor 402 of the computing device 400 reads the image from the memory 404 for processing.

[0059] In some embodiments, the processor 401 writes only one frame of image each time when writing the image captured by the camera 104 to the memory 404, and the processor 401 writes different images captured by the camera 104 to the same storage area of ​​the memory 404 in the order of the timestamps, so that the image written later will overwrite the image written earlier. The image written earlier is overwritten by the image written later, and when the processor 402 performs a read operation in the memory 404, it will not read the image written earlier, but only the image written later.

[0060] In some embodiments, the memory 404 includes multiple storage areas. Figure 6As shown, the memory 404 includes storage areas 611, 612 and 613. The processor 401 will perform write operations in sequence and cyclically between the multiple storage areas of the memory 404. Each write operation only writes one frame of image to each area, and the processor 401 writes different images to the storage areas of the memory 404 in the order of timestamps. In the same storage area, the image written later will overwrite the image written earlier. Since the image written earlier in the same storage area is overwritten by the image written later, when the processor 402 performs a read operation in the memory 404, for the same storage area, the image written earlier will not be read, and only the image written later will be read. For example, images A, B, C and D are four frames of images with adjacent timestamps captured by the camera 104 in the memory 121. In one write operation, the processor 401 writes a frame of image (for example, image A) into the storage area 611. In a subsequent second write operation, the processor 401 writes the next frame of image (for example, image B) into the storage area 612. In a subsequent third write operation, the processor 401 writes the next frame of image (for example, image C) into the storage area 613. In a subsequent fourth write operation, the processor 401 writes the next frame of image (for example, image D) into the storage area 611. When image D is written into the storage area 611, the existing image A in the storage area 611 will be overwritten.

[0061] In some embodiments, the time interval between two adjacent frames of images written by the processor 401 in the memory 404 is substantially consistent with the time interval between the timestamps of the two frames of images (due to the time spent by the processor 401 to read different images from the memory 121, there may be a slight difference between the time interval between two adjacent frames of images written by the processor 401 in the memory 404 and the time interval between the timestamps of the two frames of images). In this way, the frequency at which the processor 401 writes images to the memory 404 can be determined according to the timestamps of the images. In one example, the frequency at which the processor 401 writes images to the memory 404 is equal to the reciprocal of the time interval between two adjacent frames of images. The processor 401 writes the images read from the memory 121 to the memory 404 in sequence according to the order of the timestamps of the images. It should be noted that the timestamp of the image mentioned here can be the time added by the camera 104 to the image to record the image acquisition, or it can be the time added by the control device 106 to record the time when the control device 106 receives the image. Generally, for any two images captured by the camera 104, the time interval between the timestamps added by the camera 104 and the time interval between the timestamps added by the control device 106 are the same.

[0062] It should be noted that although Figure 64 shows that the memory 404 includes three storage areas 611, 612 and 613, but those skilled in the art will appreciate that the memory 404 may include more or fewer such storage areas. In one example, the number of such storage areas is any value not exceeding 5, and in another example, the number of such storage areas is any value not exceeding 10.

[0063] In some embodiments, each time the processor 401 completes a write operation, it sends a notification to the processor 402 to notify the processor 402 of the write operation completion event.

[0064] In step 504, the processor 402 of the electronic device 400 (or the reading module 412 of the processor 402) sequentially reads the images written by the processor 401 from the second storage medium (e.g., the memory 404) at a predetermined frequency (i.e., the second frequency). The second frequency here refers to the number of read operations performed by the processor 402 (or the reading module 412 of the processor 402) per unit time. Each read operation can read one or more frames of images. In one example, each read operation reads only one frame of image. The second frequency can be greater than the first frequency, and can be an integer multiple of the first frequency, for example, the second frequency is at least twice the first frequency.

[0065] In some embodiments, the frequency (i.e., the second frequency) at which the processor 402 reads images from the memory 404 is determined by the external trigger signal provided by the control device 106. For example, the frequency at which the processor 402 reads images from the memory 404 may be equal to the frequency of the external trigger signal provided by the control device 106 to the processor 402. At this time, the frame rate at which the virtual camera (as well as the processor 402 and the electronic device 400) outputs images is also equal to the frequency of the external trigger signal (the frequency of the external trigger signal provided by the control device 106 is generally equal to the frame rate at which the camera 104 outputs images).

[0066] Typically, the camera 104 outputs images to the control device 106 at a certain frame rate. In order to save storage space, the control device 106 does not save every frame of image received from the camera 104, but saves one frame of image every predetermined number of frames (for example, one frame of image every five frames or every six frames), and discards other images. At the same time, the control device 106 only transmits the images it saves to the computing device 120 to be stored in the memory of the computing device 120, and the control device 106 does not transmit every frame of image received from the camera 104 to the computing device 120.

[0067] During the period when the processor 401 writes multiple frames of images from the memory 121 to the memory 404, the processor 402 reads the images written by the processor 401 from the memory 404 at the second frequency. In order to truly simulate the camera 104, the frame rate of the image output by the virtual camera (as well as the processor 402 and the electronic device 400) and the second frequency can be equal to the frame rate of the image output by the camera 104. At this time, the frequency at which the processor 402 reads images from the memory 404 (i.e., the second frequency, which is numerically equal to the frame rate of the image output by the virtual camera) is greater than the frequency at which the processor 401 writes images in the memory 404 (i.e., the first frequency). When the frequency at which the processor 402 reads images from the memory 404 is greater than the frequency at which the processor 401 writes images in the memory 404, the same image will be read repeatedly for multiple times. The number of times the same image is read repeatedly can be equal to the value obtained by dividing the frequency at which the processor 402 reads images from the memory 404 by the frequency at which the processor 401 writes images in the memory 404.

[0068] In one example, it is assumed that the frame rate of the image output by the camera 104 is 60fps (frames per second), and the frame rate of the control device 106 when storing the image is 10fps (that is, for every 6 frames of image received, the control device 106 will discard 5 frames and only store one frame). The control device 106 sends the image stored at the frame rate of 10fps to the computing device 120 and stores it in the memory 121 of the computing device 120. In order to truly simulate the camera 104, the processor 401 writes the image captured by the camera 104 from the memory 121 to the memory 404 at a frequency of 10fps, and the processor 402 reads the image written by the processor 401 from the memory 404 at a frequency of 60fps, that is, each frame of the image is repeatedly read 6 times. Figure 6 The image reading and writing operations of the processor 401 and the processor 402 are shown. Figure 6 This example is described below. Figure 6 The memory 404 includes three storage areas, but those skilled in the art will appreciate that the memory 404 may include more or fewer storage areas.

[0069] like Figure 6 As shown, when the processor 401 completes writing the image B from the memory 121 to the storage area 612, it will send the write operation completion event of the image B to the processor 402, and at the same time, the processor 401 starts to write the image C from the memory 121 to the storage area 613 of the memory 404. When receiving the write operation completion event of the image B, the processor 402 may be performing the read operation of the image A, but has not completed the six read operations of the image A. The processor 402 will start to perform the read operation of the image B after completing the sixth read operation of the image A.

[0070] When the processor 401 completes writing the image C into the storage area 613, the processor 401 sends a write operation completion event of the image C to the processor 402, and at the same time, the processor 401 starts to write the image D from the memory 121 into the storage area 611 of the memory 404. When the processor 401 writes the image D into the storage area 611, it will overwrite the image A in the storage area 611. When the processor 401 receives the write operation completion event of the image C, the processor 402 may be executing the read operation of the image B, but has not completed the six read operations of the image B. After completing the sixth read operation of the image B, the processor 402 will start to execute the read operation of the image C.

[0071] According to the present disclosure, since multiple storage areas are used, in this way, when the time interval between two adjacent write operations performed by the processor 401 varies (because the time spent by the processor 401 to read different images from the memory 121 may vary, resulting in a slight difference in the time interval between two adjacent frames of images written by the processor 401 in the memory 404), the processor 402 can still stably perform the image read operation, and the electronic device 400 can also stably output the image. In the present disclosure, the processor 401 of the electronic device 400 writes the image from the first storage medium (such as the memory 121) to the second storage medium (such as the memory 404) with a faster data transmission speed, and then the processor 402 reads the image from the second storage medium, which can ensure that the frame rate of the image output by the virtual camera (or the electronic device 400) can reach the frame rate of the simulated camera.

[0072] In the present disclosure, the processor 401 writes the image from the first storage medium to a relatively fixed area of ​​the second storage medium (e.g., storage areas 611, 612, and 613), so that the processor 402 can read the image from a relatively fixed area of ​​the second storage medium. In this way, the processor 402 takes the same amount of time to read the image each time, which is beneficial to the stability of the image output by the virtual camera (or electronic device 400) (i.e., the time interval between any two frames of the image is the same).

[0073] In the present disclosure, in the presence of multiple virtual cameras (or multiple electronic devices 400), each electronic device can perform the same operation on images captured by different cameras, that is, the first processor writes the image from the first storage medium to a relatively fixed area of ​​the second storage medium, so that the second processor can read the image from a relatively fixed area of ​​the second storage medium. In this way, the second processor of each electronic device spends the same amount of time reading the image, which facilitates the synchronous output of images by multiple electronic devices.

[0074] In step 506 , the processor 402 of the electronic device 400 (or the adjustment module 413 of the processor 402 ) adjusts the image read from the second storage medium (eg, the memory 404 ) according to predetermined parameters.

[0075] The predetermined parameters are also referred to as parameters of the virtual camera. The parameters of the virtual camera include at least one of the original image bit width, the output image bit width, and the output image size. In some embodiments, the parameters of the virtual camera also include the frame rate of the virtual camera output image.

[0076] In some embodiments, corresponding parameters of a real camera to be simulated (also referred to as a simulation object) may be used as parameters of the virtual camera, that is, the values ​​of the parameters of the virtual camera are made the same as the values ​​of the corresponding parameters of the simulation object.

[0077] In some embodiments, the values ​​of one or more parameters of the simulation object can be adjusted as needed, and the adjusted corresponding parameters of the simulation object can be used as parameters of the virtual camera, even if the values ​​of the parameters of the virtual camera are the same as the values ​​of the adjusted corresponding parameters of the simulation object.

[0078] For example, in Figure 1 When the camera 104 in the simulation object is a virtual camera, the parameter values ​​of the virtual camera can be made the same as the corresponding parameter values ​​of the camera 104, or the parameter values ​​of the virtual camera can be made the same as the corresponding parameter values ​​of the adjusted camera 104. For example, the original image bit width, output image bit width, output image size, and output image frame rate of the virtual camera can be made equal to the original image bit width, output image bit width, output image size, and output image frame rate of the camera 104, respectively.

[0079] As shown above, in addition to storing image data, the storage medium of the computing device 120 or the control device 106 (e.g., the memory 121 of the computing device 120) also stores the values ​​of the parameters of the camera 104 that collected the image data. The values ​​of the parameters of the camera 104 can be read from the memory 121 by the processor of the electronic device 400 (e.g., the processor 401 or 402). If the values ​​of the parameters of the camera 104 are read by the processor 401, after the processor 401 reads the values ​​of the parameters of the camera 104, the processor 401 will send the read values ​​of the parameters (or adjust them) as the values ​​of the corresponding parameters of the virtual camera to the processor 402.

[0080] In some embodiments, the values ​​of parameters of multiple cameras (including camera 104) are stored in the memory (e.g., memory 404) of the electronic device 400. The processor (e.g., processor 401 or 402) of the electronic device 400 reads the values ​​of the parameters of camera 104 from the memory of the electronic device 400. If the values ​​of the parameters of camera 104 are read by processor 401, after reading the values ​​of the parameters of camera 104, processor 401 sends the read values ​​of the parameters (or adjusts them) as the values ​​of the corresponding parameters of the virtual camera to processor 402.

[0081] The processor 402 of the electronic device 400 adjusts the image read from the second storage medium (e.g., the memory 404) according to the parameters of the virtual camera (i.e., the values ​​of the parameters of the virtual camera), so that the image generated by the virtual camera is the same or substantially the same as the image output by the camera 104. Adjusting the image includes, for example, image bit width conversion and / or image size change.

[0082] Usually, in order to reduce the amount of data to be processed, stored and / or transmitted, the camera will reduce the bit width of the captured image. For example, the tone mapping method can be used to reduce the bit width of the captured image and output the image with reduced bit width. In order to reduce the space occupied by data storage, the control device will further reduce the bit width of the image when storing image data. For example, Figure 1 The bit width of the original image captured by the camera 104 in the embodiment is 24 bits (i.e., the bit width of the original image of the camera 104 is 24 bits), the camera 104 will perform tone mapping (e.g., piecewise linear transformation) on the original image, reduce its bit width from 24 bits to 12 bits, and output a 12-bit image (i.e., the output image of the camera 104 has a bit width of 12 bits) to the control device 106. In order to reduce the storage space occupied by the image and the amount of data transmission, the control device 106 will perform tone mapping on the image received from the camera 104, further reduce its bit width from 12 bits to 8 bits, and sometimes reduce the size of the image received from the camera 104, for example, change the image from 1936 pixels in length and 1114 pixels in width to 1920 pixels in length and 1080 pixels in width. Subsequently, the control device 106 will store the further reduced and reduced image (i.e., the image with a bit width of 8 bits and a length and width of 1920 pixels and 1080 pixels, respectively), and transmit it to the computing device 120 to be stored in the memory 121. Those skilled in the art will appreciate that the specific values ​​of the bit widths (8 bits, 12 bits, and 24 bits) and the specific values ​​of the image sizes listed in the present disclosure are only for example purposes, and the present invention is not limited thereto.

[0083] According to an embodiment of the present application, in order to make the image generated by the virtual camera have the same or substantially the same image as the image output by the camera 104 as the simulation object, the processor 402 of the electronic device 400 will perform a bit width enhancement operation (such as inverse tone mapping) to increase the image read from the memory 404 from the first bit width to a second bit width higher than the first bit width. The first bit width is the bit width of the image when it is stored in the memory 404, and its size is equal to the bit width of the image when it is stored in the computing device 120 or the control device 106. The second bit width is the original image bit width of the virtual camera. As described above, the value of the parameter of the virtual camera can be the same as the value of the corresponding parameter of the simulation object, so that the original image bit width of the virtual camera can be equal to the original image bit width of the camera 104 as the simulation object. In one example, the first bit width is 8 bits and the second bit width is 24 bits. Subsequently, the processor 402 of the electronic device 400 will perform tone mapping on the image of the second bit width, reducing it from the second bit width to the third bit width. The third bit width is the bit width of the image output by the virtual camera. The output image bit width of the virtual camera can be equal to the output image bit width of the camera 104. The third bit width is, for example, 12 bits.

[0084] Considering that different cameras may use different tone mapping functions when tone mapping the original image. In some embodiments, a table is stored in the memory 404, and the table includes tone mapping functions corresponding to different cameras. When the processor 402 of the electronic device 400 performs tone mapping on the image, it reads the table stored in the memory 404, determines the tone mapping function of the camera 104, and reduces the image from the second bit width to the third bit width according to the tone mapping function of the camera 104, so as to simulate the camera 104 more realistically.

[0085] In some embodiments, the processor 402 of the electronic device 400 also fills invalid data around the image data of the tone-mapped image, i.e., the image of the third bit width, and increases its image size to the output image size of the virtual camera. As described above, the values ​​of the parameters of the virtual camera can be the same as the values ​​of the corresponding parameters of the simulation object, so that the output image size of the virtual camera can be equal to the output image size of the camera 104 as the simulation object. For example, the processor 402 of the electronic device 400 can change the image from 1920 pixels in length and 1080 pixels in width to 1936 pixels in length and 1114 pixels in width.

[0086] In the present disclosure, the processor 402 of the electronic device 400 performs a bit width enhancement operation, increases the bit width of the image read from the second storage medium (e.g., the memory 404) to the original image bit width of the virtual camera, and then performs tone mapping to reduce the bit width of the image to the output image bit width of the virtual camera, instead of directly increasing the bit width of the image read from the memory 404 to the output image bit width of the virtual camera (directly increasing the bit width of the image read from the memory 404 to the output image bit width of the virtual camera can reduce the amount of calculation of the processor 402). In this way, compared with directly increasing the bit width of the image read from the memory 404 to the output image bit width of the virtual camera, although the amount of calculation of the processor 402 is increased, the image output by the virtual camera (or the processor 402) can be made closer to the image output by the simulation object. For example, when the tone mapping function is a nonlinear function, directly increasing the bit width of the image read from the memory 404 to the output image bit width of the virtual camera will lose some information of the nonlinear tone mapping function.

[0087] At step 508 , the electronic device 400 (or the processor 402 of the electronic device 400 or the output module 414 of the processor 402 ) outputs the adjusted image.

[0088] In some embodiments, the processor 402 of the electronic device 400 converts the format of the image adjusted in step 506 to simulate the image output interface of the camera 104. For example, if the image output interface of the camera 104 is a CSI interface (such as a MIPI CSI-2 interface), the processor 402 simulates the MIPI CSI-2 interface, converts the image adjusted in step 506 into data that complies with the MIPI CSI-2 standard (i.e., converts the image into 2 pixels per pixel clock), and outputs the converted image data. The term MIPI here is the abbreviation of the mobile industry processor interface, and CSI is the abbreviation of the camera serial interface.

[0089] In some embodiments, a table is stored in the memory 404 , and the table includes image output interfaces corresponding to different cameras. The processor 402 of the electronic device 400 reads the table stored in the memory 404 to determine the image output interface of the camera 104 .

[0090] As described above, the electronic device 400 may include a serializer, the control device 106 may include a deserializer, and the serializer of the electronic device 400 may be connected to the deserializer of the control device 106 via a cable. The processor 402 transmits the format-converted image data to the serializer, and then the serializer transmits it to the deserializer of the control device 106.

[0091] In some embodiments, the electronic device 400 may establish a virtual register with reference to the register of the real camera as the simulation object. For example, the processor 402 of the electronic device 400 may create a table in the processor 402 (or in the memory 404), and the table includes one or more fields and the value corresponding to each field. Each field corresponds to a virtual register, and the value of the field is used as the content stored in the corresponding virtual register. One or more of the virtual registers established by the electronic device 400 can be used to store the value of the parameter of the virtual camera.

[0092] After the processor 402 obtains or determines the value of the parameter of the virtual camera, the value of the parameter of the virtual camera (e.g., the original image bit width, output image bit width, and output image size of the virtual camera) can be written into the corresponding virtual register. The value of each parameter of the virtual camera is written into a virtual register. In the present disclosure, the virtual register used to store the value of the virtual camera parameter is also referred to as a virtual parameter register. When the processor 402 of the electronic device 400 performs a bit width enhancement operation, tone mapping, and image size change, the virtual parameter register can be read to determine the value of the parameter of the virtual camera (i.e., the original image bit width, output image bit width, and output image size).

[0093] In some embodiments, the control device 106 does not provide an external trigger signal to the electronic device 400. At this time, the virtual parameter register will store the frame rate of the virtual camera output image. The processor 402 will read the frame rate of the virtual camera output image from the virtual parameter register. The frequency at which the processor 402 reads images from the memory 404 can be equal to the frame rate of the virtual camera output image. The electronic device 400 (or the processor 402) will also output images at the frame rate.

[0094] The camera may generally include a control interface for transmitting control information. An example of a control interface is an I2C interface. For example, the camera 104 may include an I2C interface to transmit control information with the control device 106 via the I2C interface through the I2C bus. In some embodiments, for a more realistic simulation, the control interface of the camera 104 may also be simulated to generate a virtual control interface. For example, the processor 402 may generate a virtual I2C interface for transmitting control information with the control device 106. The processor 402 may generate a communication enable signal (e.g., Cmdready) to enable the virtual I2C interface. In one example, control information transmission can be performed through the virtual I2C interface only when the communication enable signal is at a high level.

[0095] In some embodiments, the virtual registers established by the electronic device 400 may also include one or more virtual registers for storing the state of the virtual camera. In the present disclosure, the virtual registers for saving the state of the virtual camera are also referred to as virtual state registers. The state of the virtual camera may include, for example, a standby state and an activated state. The value of the virtual state register may indicate or reflect whether the state of the virtual camera is a standby state or an activated state. The processor 402 periodically reads the virtual state register for storing the state of the virtual camera to determine the state of the virtual camera. When the state of the virtual camera is a standby state, the value of the virtual camera parameter may be written into the corresponding virtual register, but processing of the image is prohibited (for example, the execution of the above reference is prohibited). Figure 5 When the state of the virtual camera is the activated state, processing of the image is allowed (for example, steps 502-508 described above can be executed at this time), but writing the value of the virtual camera parameter into the virtual register is prohibited.

[0096] In some embodiments, the virtual registers established by the electronic device 400 may also include one or more virtual registers for storing the exposure time and gain of the virtual camera. In the present disclosure, the virtual register for storing the exposure time of the virtual camera is also referred to as a virtual exposure register, and the virtual register for storing the gain of the virtual camera is also referred to as a virtual gain register.

[0097] The processor 402 periodically reads the virtual exposure register. The processor 402 advances or delays the time of the next read of the memory 404 according to the change in the value of the virtual exposure register. For example, after the processor 402 reads the memory 404 once, if it is found that the value of the virtual exposure register increases by T (T is any value greater than zero) according to the value of the virtual exposure register, the time of the next read of the memory 404 will be delayed by T. Similarly, if it is found that the value of the virtual exposure register decreases by time T according to the value of the virtual exposure register, the time of the next read of the memory 404 will be advanced by time T.

[0098] The electronic device 400 (or the processor 402) can transmit control information with the control device (e.g., the control device 106) through a virtual control interface (e.g., a virtual I2C interface), receive a control signal from the control device 106, and determine the values ​​of the virtual status register, the virtual exposure register, and the virtual gain register according to the content of the control signal.

[0099] In some embodiments, the virtual register of the virtual camera includes a virtual frame count register. Within a set period (e.g., one second), the value of the virtual frame count register will increase by 1 each time the electronic device 400 (or the processor 402) outputs a frame of image. In the next period, the virtual frame count register will count again. In this way, if the number of frames of images received by the control device 106 from the electronic device 400 within a period is less than the number of frames calculated according to the frame rate of the virtual camera, the virtual frame count register can be used to locate the fault position, that is, to determine whether it is a fault of the virtual camera or a data transmission fault between the electronic device 400 and the control device 106.

[0100] In some embodiments, the virtual register of the virtual camera may further include a virtual fault register to store an alarm or fault signal of the virtual camera, for example, an alarm or fault signal generated when the electronic device 400 (or the processor 402) fails when processing an image. In some embodiments, the electronic device 400 may receive a user input, and the processor 402 may generate a fault or alarm signal according to the user input, and output the generated fault or alarm signal to the control device 106 so that the control device performs a corresponding operation according to the fault or alarm information.

[0101] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present disclosure is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples may be omitted or replaced by their equivalent elements. In addition, each step may be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that with the evolution of technology, many of the elements described herein may be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A method for implementing a virtual camera, comprising: Writing multiple frames of images from the first storage medium to the second storage medium in sequence according to the first frequency; During the period of sequentially writing the multiple frames of images from the first storage medium to the second storage medium at the first frequency, sequentially reading the multiple frames of images from the second storage medium at the second frequency; adjusting each frame of the image read from the second storage medium according to predetermined parameters; Output the adjusted image of each frame.

2. The method according to claim 1, wherein: Writing the plurality of frames of images from the first storage medium to the second storage medium in sequence according to the first frequency comprises: Perform multiple write operations, each write operation writes at least one frame of the multiple frames of images into the second storage medium, wherein, except for the first write operation, the image written in each write operation overwrites the image written into the second storage medium in the previous write operation.

3. The method according to claim 1, wherein: Each frame in the multiple image frames has a time stamp. The step of sequentially writing the plurality of frames of images from the first storage medium to the second storage medium at the first frequency includes: The multiple frames of images are written from the first storage medium to the second storage medium frame by frame according to the sequence of the timestamps and at the first frequency.

4. The method according to claim 3, wherein: The time interval between two frames of images with adjacent timestamps in the multiple frames of images being written into the second storage medium is substantially the same as the time interval between the timestamps of the two frames of images.

5. The method according to claim 3, wherein: The second storage medium includes a plurality of storage areas. Writing the plurality of frames of images from the first storage medium to the second storage medium in sequence according to the first frequency comprises: Multiple frames of images are written from the first storage medium into multiple storage areas of the second storage medium in sequence according to a first frequency, wherein two frames of images with adjacent timestamps are written into different storage areas.

6. The method according to claim 5, wherein: For any storage area among the multiple storage areas, an image written in each write operation overwrites an existing image in the storage area.

7. The method according to claim 1, wherein: The second storage medium includes at least one storage area, Writing the plurality of frames of images from the first storage medium to the second storage medium in sequence according to the first frequency comprises: writing the multiple frames of images from the first storage medium to at least one storage area of ​​the second storage medium in sequence according to the first frequency, For any storage area in the at least one storage area, the image written in each write operation overwrites the existing image in the storage area.

8. The method of claim 1, wherein the second storage medium has a faster data transfer speed than the first storage medium.

9. The method of claim 1, wherein the second frequency is greater than the first frequency and is an integer multiple of the first frequency.

10. The method according to claim 1, wherein: Each frame in the multiple image frames has a time stamp. The first frequency is equal to the reciprocal of the time interval between time stamps of two frames of images with adjacent time stamps in the multiple frames of images.

11. The method according to any one of claims 1 to 10, wherein: The predetermined parameters include the original image bit width of the virtual camera and the output image bit width of the virtual camera, the original image bit width of the virtual camera is greater than the output image bit width of the virtual camera, Wherein, adjusting each frame of image read from the second storage medium according to a predetermined parameter comprises: Performing a bit width increase operation on each frame of the image read from the second storage medium to increase its bit width to the original image bit width of the virtual camera, A bit width reduction operation is performed on the image with increased bit width, so as to reduce the bit width of the image to the output image bit width of the virtual camera.

12. The method according to any one of claims 1 to 10, wherein: The predetermined parameters include the output image size of the virtual camera, Wherein, adjusting each frame of image read from the second storage medium according to a predetermined parameter comprises: Each frame of image read from the second storage medium is adjusted according to the output image size of the virtual camera.

13. The method according to any one of claims 1 to 10, wherein: The output of each adjusted image frame includes: The format of each frame of the adjusted image is converted to generate image data that meets the predetermined interface standard.

14. The method according to any one of claims 1 to 10, further comprising: generating virtual registers, the virtual registers comprising a virtual status register, The step of sequentially writing the plurality of frames of images from the first storage medium to the second storage medium at the first frequency includes: In response to the value of the virtual status register indicating an activated state, multiple frames of images are sequentially written from the first storage medium to the second storage medium at a first frequency.

15. The method according to claim 14, further comprising: The value of the virtual status register is determined according to the control information received from the control device.

16. The method according to claim 15, further comprising: Create a virtual control interface, Control information is received from the control device via the virtual control interface.

17. The method according to claim 14, wherein: Generating virtual registers includes: Create a table where each field corresponds to a virtual register.

18. The method according to any one of claims 1 to 10, wherein: The output of each adjusted image frame includes: The adjusted image is output frame by frame according to a predetermined frame rate, wherein the predetermined frame rate is equal to the second frequency.

19. An electronic device comprising Memory, and A processor, wherein the processor is configured to perform the method according to any one of claims 1-18, wherein the second storage medium comprises the memory.

20. A system for implementing a virtual camera, comprising: A plurality of electronic devices, each electronic device comprising: Memory, and A processor, wherein the processor is configured to perform the method according to any one of claims 1-18, wherein the second storage medium comprises the memory.

21. A computer-readable storage medium storing program instructions, wherein when the instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 18.