High-power tracking recording method and device
By dynamically adjusting the center point of the cropping area through the subject recognition and frame matching modules, the problem of the subject falling out of the frame during digital zoom is solved, improving shooting stability and user experience. It is suitable for scenarios such as sports tracking and pet tracking.
Patent Information
- Application Number
- CN202511402925.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-28
- Publication Date
- 2026-01-13
AI Technical Summary
Existing digital zoom solutions often cause the subject to go out of the frame when tracking and shooting moving subjects, resulting in poor video recording stability and user experience.
The subject recognition module locks in the target subject, and the frame matching module dynamically adjusts the center point of the cropping area of the digital zoom, so that the zoomed-in image always focuses on the target subject, thus achieving dynamic cropping.
It solves the problem of subject loss caused by center cropping in traditional digital zoom, improves the success rate of shooting and the quality of finished products, reduces the difficulty of manual tracking for users, and improves the human-computer interaction experience.
Smart Images

Figure CN121334334A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present disclosure relate to the field of image recording technology, and in particular to a high-magnification tracking recording method and device. BACKGROUND
[0002] With the popularity of digital cameras, smart phones and other image devices, the digital zoom function has become a standard configuration. Unlike optical zoom, which achieves zooming in and out by changing the focal length of the lens, digital zoom is achieved by cropping the central region of the original picture captured by the image sensor and interpolating it to zoom in.
[0003] The existing digital zoom solution has the following inherent defects: when the user zooms in, the camera system will fixedly crop from the center of the original picture. This "center cropping" mechanism is simple and easy to implement, but in actual application scenarios, especially when tracking and shooting moving subjects (such as people, pets, athletes, etc.), it exposes significant problems. Once the user locks the shooting subject away from the center of the picture, after zooming in, the subject is likely to be excluded from the cropped frame, resulting in the subject "out of frame" and tracking failure. The user must manually move the device to reframe, which is tedious and can easily cause the picture to shake, seriously affecting the stability, accuracy and user experience of video recording.
[0004] Therefore, it is necessary to improve one or more problems in the above-mentioned related technical solutions.
[0005] It should be noted that the information disclosed in the above background section is only used to strengthen the understanding of the background of the present disclosure, and therefore can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY
[0006] The purpose of the embodiments of the present disclosure is to provide a high-magnification tracking recording method, thereby at least partially overcoming one or more problems caused by the limitations and defects of the related art.
[0007] According to a first aspect of the embodiments of the present disclosure, a high-magnification tracking recording method is provided, comprising: obtaining an original picture; identifying all subjects in the original picture, obtaining the position information of each subject in the original picture, and determining a target subject from all subjects according to a target subject instruction; obtaining a digital zoom magnification according to a digital zoom instruction, and calculating a default cropped frame according to the digital zoom magnification; wherein the default cropped frame has a default starting coordinate and a default size in the original picture; The method comprises: dynamically adjusting a starting coordinate of a default cropping frame based on position information of a target subject; and cropping and recording an image output by a camera according to the adjusted cropping frame, wherein the size of the adjusted cropping frame is the same as that of the default cropping frame.
[0008] Further, the position information comprises a starting coordinate (x, y) and a length-width (a, b) of a bounding box of the subject.
[0009] Further, the dynamic adjustment of the starting coordinate of the default cropping frame comprises: mapping the starting coordinate of the default cropping frame to the starting coordinate (x, y) of the bounding box of the target subject, and calculating a new coordinate based on the starting coordinate (x, y) as the adjusted starting coordinate.
[0010] Further, the dynamic adjustment needs to satisfy a constraint condition that the adjusted cropping frame does not exceed the boundary of the original picture.
[0011] Further, the target subject is determined by receiving a selection instruction of a user, and the selection instruction of the user is input by at least one of clicking a screen, operating a scroll wheel, or pressing a key.
[0012] Further, if the size of the original picture is (W, H), the default starting coordinate of the default cropping frame is (W / (2m), H / (2m)), and the default size is (W / m, H / m).
[0013] According to a second aspect of the embodiments of the present disclosure, a high-magnification tracking recording device is provided, comprising: a camera sensor configured to acquire an original picture; a subject recognizer configured to identify all subjects in the original picture, acquire position information of each subject in the original picture, and determine a target subject from all the subjects according to a target subject instruction; a digital magnification receiver configured to obtain a digital zoom magnification according to a digital zoom instruction, and calculate a default cropping frame according to the digital zoom magnification, wherein the default cropping frame has a default starting coordinate and a default size in the original picture; a frame matching recording module configured to dynamically adjust the starting coordinate of the default cropping frame based on the position information of the target subject, and crop and record an image output by a camera according to the adjusted cropping frame, wherein the size of the adjusted cropping frame is the same as that of the default cropping frame.
[0014] According to a third aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, which stores a computer program, and the program is executed by a processor to implement the steps of the high-magnification tracking recording method in any one of the above embodiments.
[0015] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the steps of the high-magnification tracking recording method in any one of the above embodiments via execution of the executable instructions.
[0016] The technical solutions provided by the embodiments of the present disclosure can include the following beneficial effects: In the embodiments of the present disclosure, by the above method and device, on the one hand, the target subject is locked by the subject identification module, and the center point of the cropping area of the digital zoom is dynamically adjusted by the frame matching module, so that the zoomed-in frame always has the target subject as the core. This fundamentally solves the problem of subject loss caused by center cropping in traditional digital zoom, and is particularly suitable for motion follow-up, pet tracking, video interview and other scenes, greatly improving the success rate and picture quality of shooting. On the other hand, the user does not need to manually track the moving subject while zooming to maintain its composition position. The device automatically completes tracking and composition adjustment, reduces the difficulty of shooting, so that ordinary users can also easily shoot stable and professional tracking zoom video, greatly improving the human-computer interaction experience. Not only suitable for single-subject tracking, but also can handle multi-subject scenes. Through the human-computer interaction module, the user can flexibly select the specific target to be tracked, meet the diversified needs in complex shooting environment, and enhance the practicality and adaptability of the device.
[0017] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0018] The accompanying drawings, which are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0019] Figure 1 A step diagram of a high-magnification tracking recording method in an exemplary embodiment of the present disclosure is shown; Figure 2 A schematic diagram of ordinary digital cropping in an exemplary embodiment of the present disclosure is shown; Figure 3 A frame after digital zoom in an exemplary embodiment of the present disclosure is shown; Figure 4This illustrates the ROI result of the subject identifier in an exemplary embodiment of this disclosure; Figure 5 This diagram illustrates the result of matching the subject identification window 1 and the recording frame in an exemplary embodiment of this disclosure. Figure 6 This diagram illustrates a specific flowchart of the high-magnification tracking recording method in an exemplary embodiment of this disclosure; Figure 7 This diagram illustrates the structure of a high-magnification tracking recording apparatus according to an exemplary embodiment of the present disclosure. Figure 8 This diagram illustrates a program product according to an exemplary embodiment of the present disclosure; Figure 9 This diagram illustrates an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation
[0020] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0021] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0022] This example implementation first provides a high-magnification tracking recording method, which can be applied to a terminal device, such as a mobile phone, personal digital assistant, laptop, tablet, smartwatch, or other mobile terminal [adjusted flexibly according to specific circumstances, such as a server]. Reference Figure 1 As shown, the method may include the following steps: Step S101: Acquire the original image; Step S102: Identify all subjects in the original image, obtain the position information of each subject in the original image, and determine the target subject from all subjects according to the target subject instruction; Step S103: Obtain the digital zoom ratio according to the digital zoom command, and calculate the default cropping area based on the digital zoom ratio; wherein, the default cropping area has the default starting coordinates and default size in the original image; Step S104: Based on the location information of the target subject, dynamically adjust the starting coordinates of the default cropping frame, and crop and record the image output by the camera according to the adjusted cropping frame; wherein, the size of the adjusted cropping frame is the same as the size of the default cropping frame.
[0023] The above method achieves two main results. First, the subject recognition module locks onto the target subject, and the frame matching module dynamically adjusts the center point of the cropping area of the digital zoom, ensuring that the zoomed-in image always centers on the target subject. This fundamentally solves the problem of subject loss caused by center cropping in traditional digital zoom, making it particularly suitable for scenarios such as motion tracking, pet tracking, and video interviews, significantly improving the success rate and quality of the final product. Second, users no longer need to manually track moving subjects to maintain their compositional position while zooming. The device automatically completes tracking and composition adjustment, reducing the difficulty of shooting and allowing ordinary users to easily shoot stable, professional tracking zoom videos, greatly improving the human-computer interaction experience. It is not only suitable for single-subject tracking but can also handle multi-subject scenes. Through the human-computer interaction module, users can flexibly select the specific target to be tracked, meeting diverse needs in complex shooting environments and enhancing the device's practicality and adaptability.
[0024] Below, we will refer to Figures 1 to 6 The steps of the method described above in this example embodiment will be explained in more detail.
[0025] In one embodiment, such as Figure 2 The image shown is a schematic diagram of a standard digital cropping recording, which can only record the center position.
[0026] This application acquires object information from the image, locks onto the subject information, and, as the entire image is zoomed in digitally, controls the camera's position in the recorded video based on the subject's location within the image and the digital zoom level. Among these... Step S101: Acquire the original image; Step S102: Identify the subject information in the image. The identification method is as follows: Based on functional constraints, identify the corresponding subject. Subject information includes, but is not limited to, human subjects, pet subjects, etc. For the obtained subject coordinate information (Subject 1, Subject 2, Subject 3), draw a rectangular coordinate frame based on the subject's coordinates in the camera sensor; for example, Subject 1 has coordinates (200, 300) and dimensions (300, 300); Subject 2 has coordinates (800, 600) and dimensions (400, 400); Subject 3 has coordinates (2000, 2000) and dimensions (200, 200). Figure 3 The image shows the ROI result of the subject identifier.
[0027] The operator selects the subject within the frame, using methods including but not limited to tapping the screen, using the scroll wheel, or pressing buttons. After selecting the subject, the operator performs a digital zoom operation on the device.
[0028] Step S103: Receive client instructions to zoom in on the camera and crop the image according to zoom rules. For example, if the zoom level is 2x, automatically reduce the image size by a factor of 2. If the camera snesor is 4000*3000 pixels, digital zoom will reduce the image size to 2000*1500 pixels. Figure 4 As shown, this is the image size after digital zoom.
[0029] Step S104: Record camera images in real time based on the image frame pixels generated by the digital magnification receiver. Record video in real time according to the camera's output frame rate.
[0030] Based on a subject detector and a digital magnification receiver, the position of the subject's coordinates within the entire image is matched, and finally, the content of the subject detector is recorded in the frame matching recorder. For example... Figure 5 The image shown is a result of matching the subject recognition window 1 with the recorded frame.
[0031] In a specific embodiment, such as Figure 6 The diagram shown is a flowchart of the high-magnification tracking recording method; the high-magnification tracking recording method is as follows: 1. Open the camera and output a stable image.
[0032] 2. Subject Recognition: Identifies the main subject in the image, starting at (0,0) and ending at (x,y) of the camera's horizontal exposure, and performs coordinate transformation on the subject's Region of Interest (ROI). The recognized ROI covers the entire subject, and its starting coordinates and dimensions are calculated.
[0033] Subject recognition: According to the preset functions, it can recognize the human body, such as locking the head based on facial features and locking the body based on limbs, and finally outputting the coordinates of the recognized subject. Specifically, the types of subjects that can be recognized can be increased by adding test case sets.
[0034] 3. When multiple subjects appear on the screen, the device operator selects the subjects in the frame. The selection method is not limited to clicking the screen, using the scroll wheel, or pressing a button. 4. After selecting the corresponding subject, as the operator performs digital zoom on the device, the magnification of the current camera output frame is calculated.
[0035] The digital zoom magnification is the real-time magnification. For example, if you scroll the wheel to 2x digital zoom, the image size will be cropped from (4000, 3000) to (2000, 1500) by 2x from the center.
[0036] 5. Calculate the ROI area to be displayed based on the magnification.
[0037] With the center coordinates unchanged, the area for displaying the ROI is calculated based on the zoom ratio: the full size is (4000, 3000), the top left corner is assumed to be (0, 0), and the area of the screen with a length and width of (2000, 1500) is displayed starting from the original screen (1000, 750) according to the clipping.
[0038] 6. Match the ROI region coordinates with the coordinates selected after subject recognition. This matching method can improve the situation where the subject runs out of the frame.
[0039] Based on the subject's coordinates at the original size, such as (300, 300) as the starting point, the size is (500, 300). After 2x zoom, the display frame cannot show the subject. In this case, the starting coordinates of the display area are mapped from (1000, 750) to the starting coordinates of the subject frame, so the display screen's dimensions remain the same after digital zoom (2000, 1500). The subject will then be displayed after digital zoom. Assuming a zoom level of m, the starting coordinates would be (4000 / m / 2, 3000 / m / 2), and the dimensions would be (4000 / m, 3000 / m).
[0040] Assuming a given set of coordinates, the main body coordinates start at point A(x, y), and the main body roi has dimensions (a, b).
[0041] Mapping scenarios can be categorized as follows: 1) The displayed ROI area after zooming is larger than the main body coordinates, and after mapping the starting coordinates, the screen does not exceed the total frame width (4000, 3000). That is, with the starting coordinates (x, y), the actual display width is (4000 / m, 3000 / m).
[0042] 2) If x+4000 / m is less than 4000 and y+3000 / m is less than 3000, then the coordinates can be aligned from the starting position according to the coordinate mapping.
[0043] Based on the subject's coordinates, the digitally cropped image is dynamically adjusted, the subject's coordinates are tracked in real time, and the image is recorded.
[0044] 7. Recalculate the coordinates of the region containing the subject and draw the coordinates to be displayed. These coordinates include the selected subject, and the ROI region is the size after digital zoom.
[0045] 8. Display the calculated coordinates, and record the results after recognition.
[0046] It should be noted that although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that these steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps. Furthermore, it is readily understood that these steps may be executed synchronously or asynchronously, for example, in multiple modules / processes / threads.
[0047] Furthermore, this example embodiment also provides a high-magnification tracking and recording device. (See reference...) Figure 7 As shown, the device may include a camera sensor, a subject detector, a digital magnification receiver, and a frame-matching recording module. Wherein: Camera sensor, used to capture raw images; The subject recognizer is used to identify all subjects in the original image, obtain the position information of each subject in the original image, and determine the target subject from all subjects according to the target subject instruction; A digital zoom ratio receiver is used to obtain the digital zoom ratio according to the digital zoom command, and to calculate the default cropped image size based on the digital zoom ratio; wherein, the default cropped image size has the default starting coordinates and default size in the original image; The frame matching recording module is used to dynamically adjust the starting coordinates of the default cropping frame based on the position information of the target subject, and to crop and record the image output by the camera according to the adjusted cropping frame; wherein, the size of the adjusted cropping frame is the same as the size of the default cropping frame.
[0048] Specifically, the camera sensor is used to acquire the raw image; Subject Recognizer: Identifies subject information in the image. Recognition method: Based on functional constraints, it identifies the corresponding subject. Subject information includes, but is not limited to, human subjects, pet subjects, etc. For the acquired subject coordinate information (Subject 1, Subject 2, Subject 3), a rectangular coordinate frame is drawn based on the subject's coordinates in the camera sensor; for example, Subject 1 has coordinates (200, 300) and dimensions (300, 300); Subject 2 has coordinates (800, 600) and dimensions (400, 400); Subject 3 has coordinates (2000, 2000) and dimensions (200, 200).
[0049] In addition, the device includes a human-computer interaction module, allowing the operator to select the subject within the frame. Selection methods include, but are not limited to, tapping the screen, using a scroll wheel, or pressing buttons. After selecting the subject, the operator performs digital zoom on the device.
[0050] The digital zoom receiver receives client commands to zoom in on the camera and crops the image according to zoom rules. For example, if the zoom level is 2x, the image width and height are automatically reduced by a factor of 2. The camera snesor is 4000x3000 pixels; through digital zoom, the image size becomes 2000x1500 pixels. The image frame matching recording module records camera images in real-time based on the image frame pixel count generated by the digital zoom receiver. Video recording is performed in real-time according to the camera's output frame rate.
[0051] Based on the subject identifier and digital magnification receiver, the position of the subject identification coordinates in the whole picture is matched, and finally the content of the subject identifier is recorded in the picture frame matching recorder.
[0052] The high-magnification tracking recording method and device described above achieves several advantages. Firstly, the subject recognition module locks onto the target subject, and the frame matching module dynamically adjusts the center point of the cropped area of the digital zoom, ensuring that the zoomed-in image always centers on the target subject. This fundamentally solves the problem of subject loss due to center cropping in traditional digital zoom, making it particularly suitable for scenarios such as motion tracking, pet tracking, and video interviews, significantly improving the success rate and quality of the final product. Secondly, users no longer need to manually track moving subjects to maintain their compositional position while zooming. The device automatically completes tracking and composition adjustment, reducing the difficulty of shooting and allowing ordinary users to easily capture stable, professional tracking zoom videos, greatly improving the human-computer interaction experience. It is not only suitable for single-subject tracking but can also handle multi-subject scenes. Through the human-computer interaction module, users can flexibly select the specific target to track, meeting diverse needs in complex shooting environments and enhancing the device's practicality and adaptability.
[0053] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0054] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units. Components shown as modules or units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without any inventive effort.
[0055] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, having stored thereon a computer program that, when executed by a processor, can implement the steps of the high-magnification tracking recording method described in any of the above embodiments. In some possible implementations, various aspects of the invention can also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the invention described in the high-magnification tracking recording method section of this specification.
[0056] refer to Figure 8 As shown, a program product 300 for implementing the above-described method according to an embodiment of the present invention is described. It may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0057] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0058] The computer-readable storage medium may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0059] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0060] In exemplary embodiments of this disclosure, an electronic device is also provided, which may include a processor and a memory for storing executable instructions of the processor. The processor is configured to perform the steps of the high-magnification tracking recording method described in any of the above embodiments by executing the executable instructions.
[0061] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely in hardware, entirely in software (including firmware, microcode, etc.), or in a combination of hardware and software, collectively referred to herein as “circuit,” “module,” or “system.”
[0062] The following reference Figure 9 To describe an electronic device 600 according to this embodiment of the present invention. Figure 9 The electronic device 600 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0063] like Figure 9 As shown, the electronic device 600 is presented in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including storage unit 620 and processing unit 610), a display unit 640, etc.
[0064] The storage unit stores program code that can be executed by the processing unit 610, causing the processing unit 610 to perform the steps described in the high-magnification tracking recording method section of this specification, according to various exemplary embodiments of the present invention. For example, the processing unit 610 can perform actions such as... Figure 1 The steps are shown in the figure.
[0065] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache storage unit 6202, and may further include a read-only memory unit (ROM) 6203.
[0066] The storage unit 620 may also include a program / utility 6204 having a set (at least one) program module 6205, such program module 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0067] Bus 630 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0068] Electronic device 600 can also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 650. Furthermore, electronic device 600 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 660. Network adapter 660 can communicate with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0069] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, or network device, etc.) to execute the above-described high-magnification tracking recording method according to the embodiments of this disclosure.
[0070] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
Claims
1. A high-magnification tracking recording method, characterized in that, include: Acquire the original image; Identify all subjects in the original image, obtain the position information of each subject in the original image, and determine the target subject from all subjects according to the target subject instruction; Based on the digital zoom command, the digital zoom ratio is obtained, and the default cropped area is calculated based on the digital zoom ratio; wherein, the default cropped area has the default starting coordinates and default size in the original image; This is used to dynamically adjust the starting coordinates of the default cropping frame based on the location information of the target subject, and to crop and record the image output by the camera according to the adjusted cropping frame; wherein, the size of the adjusted cropping frame is the same as the size of the default cropping frame.
2. The high-magnification tracking recording method according to claim 1, characterized in that, Location information includes the starting coordinates (x, y) and the length and width (a, b) of the subject's bounding box.
3. The high-magnification tracking recording method according to claim 2, characterized in that, Dynamically adjusting the starting coordinates of the default cropping frame includes: The default starting coordinates of the cropped image are mapped to the starting coordinates (x, y) of the bounding box of the target subject, and the new coordinates calculated based on the starting coordinates (x, y) are used as the adjusted starting coordinates.
4. The high-magnification tracking recording method according to claim 3, characterized in that, Dynamic adjustments must meet the following constraints: the adjusted cropped image must not exceed the boundaries of the original image.
5. The high-magnification tracking recording method according to claim 4, characterized in that, The target subject is determined by receiving the user's selection instruction, which is entered by tapping the screen, operating the scroll wheel, or pressing a button.
6. The high-magnification tracking recording method according to claim 5, characterized in that, If the original image size is (W, H), then the default starting coordinates of the cropped image are (W / (2m), H / (2m)), and the default size is (W / m, H / m).
7. A high-magnification tracking and recording device, characterized in that, include: Camera sensor, used to capture raw images; The subject recognizer is used to identify all subjects in the original image, obtain the position information of each subject in the original image, and determine the target subject from all subjects according to the target subject instruction; A digital zoom ratio receiver is used to obtain the digital zoom ratio according to the digital zoom command, and to calculate the default cropped image size based on the digital zoom ratio; wherein, the default cropped image size has the default starting coordinates and default size in the original image; The frame matching recording module is used to dynamically adjust the starting coordinates of the default cropping frame based on the position information of the target subject, and to crop and record the image output by the camera according to the adjusted cropping frame; wherein, the size of the adjusted cropping frame is the same as the size of the default cropping frame.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the steps of the high-magnification tracking recording method according to any one of claims 1 to 6.
9. An electronic device, characterized in that, include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to perform the steps of the high-magnification tracking recording method according to any one of claims 1 to 6 by executing the executable instructions.