Change audio or video compression based on AI detection or classification results

The machine learning model identifies objects of interest in the video stream and selectively compresses them, solving the problem of insufficient storage space, improving the quality and visibility of the video stream, and ensuring the identification of important details.

CN112788347BActive Publication Date: 2024-09-06APPLE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011183711.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-11-01
Filing Date
2020-10-29
Publication Date
2024-09-06
Estimated Expiration
2040-10-29

AI Technical Summary

Technical Problem

Existing technologies face the problem of insufficient storage space when storing high-quality video streams, resulting in a reduction in video resolution, which in turn affects the visibility of the video stream and the identification of important details.

Method used

By using a machine learning model to identify objects of interest in the image frames of the video stream, and selectively compressing the video stream based on the classification results, retaining the high quality of important frame sequences, compressing the sequence of interest using a lossless algorithm, and using a lossy algorithm for other frames compression.

Benefits of technology

Without significantly increasing storage costs, the video quality of the sequence of interest is improved, enhancing the user's ability to view the video stream and ensuring the identification of important details.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112788347B_ABST
    Figure CN112788347B_ABST
Patent Text Reader

Abstract

The present disclosure relates to changing audio or video compression based on AI detection or classification results. In one embodiment, a computing device receives a video stream including a plurality of frames from one or more cameras, wherein the video stream is received at a first quality. The computing device uses a machine learning model to analyze images in the frames, wherein the machine learning model has been trained to detect one or more objects of interest in the images. The computing device identifies a sequence of interest including consecutive frames of the video stream, wherein at least one object of interest is detected in at least one of the consecutive frames. The computing device generates a video packet including the sequence of interest.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates generally to machine learning tasks, and more particularly to indications of activities performed by machine learning tasks. Background Art

[0002] Machine learning techniques, including neural networks, can be applied to problems in computer vision, audio processing, and other fields. Neural networks can be used to perform tasks such as image classification, object detection, image segmentation, and speech recognition. Neural networks have been trained to classify images using large data sets, which include, for example, millions of images with ground truth labels. Machine learning techniques can be performed on inputs received from sensors such as cameras, microphones, etc. The sensors can be attached to a user's computing device, such as a laptop or mobile phone. For example, a webcam can capture a video of the user, and a microphone can capture the user's voice. Summary of the invention

[0003] In a particular embodiment, a computing device including a camera can be used in a network environment to monitor a scene. The camera can be used to capture the details of the activities within the scene. Generally speaking, the camera can be used as a security measure to provide materials in the case where a user needs to view the video footage captured by the camera. However, the video footage may not be of the best quality. This may be the result of the need to save storage space for all the materials collected for a whole day, a whole week, etc. The cameras used today may be able to produce high-quality videos, but in many cases, it may not make sense to maintain this quality for storage purposes. The reason behind this is that there may not be enough storage space to store high-quality videos of 24 hours of video 7 days a week. In addition, multiple cameras may be contributing their respective video streams, so if each individual video stream needs to be stored, there may be a large storage space requirement. There may be a high cost associated with a large storage space requirement. In order to overcome the problem of lack of sufficient storage space and reduce the cost associated with video stream storage space, the entire video stream can usually be compressed to reduce the size of the video to a size that can be stored in a longer-term storage device. However, the reduction in resolution may make it more difficult to view the video stream and determine important details from the video stream. To address this quality degradation while still considering storage capacity limitations, the computing device can identify sequences of interest in order to maintain video quality for important scenes where fidelity is important.

[0004] In a particular embodiment, in order to identify a sequence of interest, a computing device may use a machine learning model to detect one or more objects of interest in an image in a frame associated with a video stream. In a particular embodiment, a computing device may classify various detected objects within an image frame of a video stream. The classification of objects may help identify a sequence of interest and whether to retain the video quality of the video stream. In a particular embodiment, a computing device may change audio or video compression based on the classification. By selectively compressing portions of a video stream, a computing device may retain the video quality of a sequence of interest without significantly increasing the storage cost of the video stream. This may help improve the ability of a user to view a video stream by improving the video quality of a sequence of interest.

[0005] The embodiments disclosed above are only examples, and the scope of the present disclosure is not limited to these embodiments. Specific embodiments may include all, part, or no part of the components, elements, features, functions, operations, or steps of the embodiments disclosed above. Embodiments according to the present invention are specifically disclosed in the appended claims relating to methods, storage media, systems, and computer program products, wherein any feature mentioned in one claim category (e.g., method) may also be proposed in another claim category (e.g., system). The dependencies or references in the preceding appended claims are selected only for formal reasons. However, any subject matter generated by intentionally citing any previous claim (especially multiple dependencies) may also be claimed, so that any combination of claims and their features is disclosed and may be claimed, regardless of the dependencies selected in the appended claims. The subject matter that can be protected by the claims includes not only the combination of features described in the appended claims, but also any other combination of features in the claims, wherein each feature mentioned in the claims may be combined with any other feature or combination of other features in the claims. Furthermore, any of the embodiments and features described or depicted herein may be claimed in a separate claim and / or in any combination with any embodiment or feature described or depicted herein or with any feature of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1 An exemplary network environment associated with multiple camera devices is shown.

[0007] Figure 2 An exemplary process for performing object classification using images is shown.

[0008] Figure 3 An exemplary video stream received from a camera is shown.

[0009] Figure 4An exemplary video package generated by a computing device based on AI detection and classification results is shown.

[0010] Figure 5 An exemplary method for using a machine learning model to change audio or video compression based on recognition of an object of interest is shown.

[0011] Figure 6 An exemplary network environment associated with one or more machine learning systems is shown.

[0012] Figure 7 An exemplary computer system is shown. DETAILED DESCRIPTION

[0013] In a particular embodiment, a computing device including a camera can be used in a network environment to monitor a scene. By way of example and not limitation, a camera can be placed to monitor the interior of a bank. It can be used to capture the details of activities within a scene. Generally speaking, a camera can be used as a security measure to provide materials in the event that a user needs to view the video footage captured by the camera. By way of example and not limitation, in the event of a robbery at a bank, a user may need to view the video footage. However, the video footage may not be of the best quality generally. This may be the result of the need to save storage space for all the materials collected throughout the day. The cameras used today may be able to produce high-quality video, but in many cases, it may not make sense to maintain this quality for storage purposes. The reason behind this is that there may not be enough storage space to store high-quality video of 24 hours of video 7 days a week. In addition, multiple cameras may be contributing their respective video streams, so if each individual video stream needs to be stored, there may be a large storage space requirement. There may be a high cost associated with a large storage space requirement. In order to overcome the problem of lack of sufficient storage space and reduce the cost associated with video stream storage space, the entire video stream can usually be compressed to reduce the size of the video to a size that can be stored in a longer-term storage device. By way of example and not limitation, if a video is recorded at 1080p resolution, the video stream resolution may be reduced to 240p to enable storage of a longer length of video stream. However, the reduction in resolution may make it more difficult to view the video stream and determine important details from the video stream. To address this issue, the computing device may identify sequences of interest so that video quality is preserved for important sequences of frames where fidelity is important. By way of example and not limitation, a sequence of interest may be a situation where a camera observes an intruder breaking into a user's home. Preserving the high video quality of this sequence of frames may help identify the suspect in the future.

[0014] In a particular embodiment, in order to identify a sequence of interest, a computing device may use a machine learning model to detect one or more objects of interest in an image in a frame associated with a video stream. By way of example and not limitation, an object of interest may be a weapon identified in an image frame of a video stream. In a particular embodiment, a computing device may classify various detected objects within an image frame of a video stream. The classification of objects may help identify a sequence of interest and whether to retain the video quality of a video stream. By way of example and not limitation, the identification of an object classified as a weapon within an image frame may be the initial frame of a sequence of interest. In a particular embodiment, a computing device may change audio or video compression based on the classification. By way of example and not limitation, if a computing device detects an object classified as miscellaneous, the computing device may compress a frame of a video stream having the object to a reduced resolution, but better than a frame where the object is not detected. Frames with detected objects classified as weapons may not change resolution. In a particular embodiment, frames of a sequence of interest may be compressed using a lossless algorithm, while other frames of a video stream may be compressed using a lossy algorithm that produces more compact data. By selectively compressing portions of a video stream, a computing device may retain the video quality of a sequence of interest without significantly increasing the storage cost of the video stream. This can help improve a user's ability to view a video stream by increasing the video quality of sequences of interest.

[0015] Figure 1 An exemplary network environment 100 associated with one or more camera systems is shown. In certain embodiments, the network environment 100 may include a plurality of computing devices 130 and third-party systems 170 connected to each other by a network 110 via links 150. Although three computing devices 130 are shown, any number of computing devices 130 may be present within the network environment 100. In certain embodiments, the computing device 130 may include a machine learning model 132 that may be trained to detect objects of interest within images captured by a camera 134. In certain embodiments, the computing device 130 may be embodied as any suitable computing device, such as a laptop, a cellular phone, a smart phone, a tablet, a camera device, or a video camera device. In certain embodiments, the computing device 130 may be a device specifically for recording a video stream, which may be a plurality of frames containing an image.

[0016] In certain embodiments, the machine learning model 132 may be trained to identify an object of interest by analyzing a plurality of images. In certain embodiments, the machine learning model 132 may be trained in any suitable manner. In certain embodiments, the machine learning model 132 may be updated using any training data from other machine learning models 132. In certain embodiments, by default, the computing device 130 may be set to compress the video stream received from the camera 134 to a lower quality. This default setting may help ensure that the storage of the video stream does not exceed the storage capacity. In certain embodiments, each computing device 130 having a camera 134 may have its own camera field of view, which may be the field of view of the scene. The camera fields of view of the computing device 130 may overlap, separate, or any combination thereof. In certain embodiments, the computing device 130 may receive a video stream including a plurality of frames from its corresponding camera 134. The video stream may initially be received at the highest resolution that the camera 134 can achieve. In certain embodiments, the computing device 130 may reduce the resolution of the video stream and compress the video stream to be stored. In certain embodiments, the computing device 130 may initially analyze the image of the video stream by using the machine learning model 132. The computing device 130 may use the machine learning model 132 to detect an object of interest in an image of the received video stream. Once the object of interest is not detected, the computing device 130 may compress the video stream to a reduced resolution. In a particular embodiment, the computing device 130 may generate a video packet including a compressed video stream. The computing device 130 may generate a video packet including a compressed video stream of any size or length for storage purposes.

[0017] In a particular embodiment, the third party system 170 can be a server, wherein the video stream is uploaded from the computing device 130 to be stored for access at a future time. In a particular embodiment, if the storage capacity is reached, the storage device can erase the earlier video stream. In a particular embodiment, the third party system 170 can prioritize the uncompressed video stream and initially delete the compressed video stream. In a particular embodiment, the third party system 170 can determine whether the compressed video stream is associated with the time period exceeding the threshold time period. By way of example and not limitation, the third party system 170 may want to retain and store video streams (compressed and uncompressed) less than a week's time. However, if the stored video stream is earlier than a week, the third party system 170 can delete the stored earlier video stream, and if the storage capacity is reached, the compressed video stream is first preferentially deleted.

[0018] In certain embodiments, the network environment 100 may be used to monitor a scene. By way of example and not limitation, the computing devices 130 may be set to monitor the interior of a bank. In certain embodiments, if one computing device 130 detects an object of interest, the other computing devices 130 of the network environment 100 may be triggered to maintain the quality (e.g., resolution) of the video stream for its corresponding video stream, even though the object of interest is not detected. By triggering the surrounding computing devices 130 to maintain the quality of their video streams, if the object of interest is switched from one camera field of view to another camera field of view, the quality may be maintained relative to the object of interest. In certain embodiments, the number of computing devices 130 may affect the compression of the video stream received from the camera 134. By way of example and not limitation, in order to save storage capacity, if an object of interest is detected in a camera field of view of one computing device 130, the other computing devices 130 may slightly reduce the resolution (but not to the default setting where the object of interest is not detected) instead of receiving the video stream at the highest resolution. In certain embodiments, computing device 130 may track an object of interest within a camera field of view and trigger other computing devices 130 to stop compressing their respective video streams when computing device 130 determines that the object of interest is about to enter another camera field of view. By way of example and not limitation, if one computing device 130 determines that an object of interest is approaching the camera field of view of other computing devices 130, the surrounding computing devices 130 may record and store or upload the video stream at the highest resolution. By way of another example and not limitation, if computing devices 130 are numbered sequentially, the computing device 130 that currently detects the object of interest may notify the next computing device 130 to store or upload its corresponding video stream at the highest resolution. In certain embodiments, after an object of interest has not been detected within any image corresponding to a video stream, computing device 130 may continue to store or upload an uncompressed video stream (e.g., a video stream of the highest resolution) for a threshold period of time.

[0019] In a particular embodiment, when computing device 130 detects an object of interest within an image in a frame of a video stream, computing device 130 may identify a sequence of interest. The initial frame in which the object of interest is detected may be the first frame of the sequence of interest. In a particular embodiment, the sequence of interest may be a plurality of consecutive frames of a video stream, at least one of which contains an object of interest. In a particular embodiment, when computing device 130 is ready to store a video stream or upload a video stream, computing device 130 may store frames of the video stream in a buffer. In a particular embodiment, starting to store frames in a buffer may be in response to detecting an object of interest in an image of the video stream. Ending to store frames in a buffer may be in response to determining that an object of interest is not detected in a minimum number of images in the frames of the video stream. By way of example and not limitation, computing device 130 may start storing frames in a buffer corresponding to a sequence of interest, and end the storage of frames after the sequence of interest when a minimum number of images (e.g., 100 frames) do not have an object of interest. In a particular embodiment, the last frame of the sequence of interest may correspond to the last frame including an image with an object of interest. In a particular embodiment, a sequence of interest may include several images in a frame that do not have an object of interest. By way of example and not limitation, if the object of interest moves in and out of the camera field of view of the computing device 130, the computing device 130 may continuously add frames to the sequence of interest. In a particular embodiment, the computing device 130 may generate a video packet including the sequence of interest. In a particular embodiment, the computing device 130 may generate a video packet in response to ending the storage of frames in the buffer. In a particular embodiment, the computing device 130 may generate a video packet when the buffer has dropped below a minimum threshold of available capacity. In a particular embodiment, the computing device 130 may transmit and / or store the video packet to the third party system 170 or another computing device 130 in response to determining that the object of interest has not been detected in a minimum number of images in the frames after the sequence of interest. By way of example and not limitation, the computing device 130 may determine that there have been 200 frames in which the object of interest has not been detected, and generate and transmit a video packet including the sequence of interest to the third party system 170. In a particular embodiment, the computing device 130 may store a predetermined number of frames (e.g., 5000 frames) of the video stream in the buffer. If the object of interest is not detected in a threshold number of frames (e.g., 2000 frames), computing device 130 may compress the frames in the buffer. In certain embodiments, if computing device 130 identifies a sequence of interest while there are frames in the buffer that do not have the object of interest, the computing device may add those frames to the sequence of interest. This may be helpful in the case where a user wants to view a video stream before the sequence of interest occurs. In certain embodiments, computing device 130 may determine that the object of interest is not detected in images of a sequence of consecutive video frames received before or after the sequence of interest.The computing device 130 may compress a sequence of continuous video frames, which may reduce the resolution of the image. The computing device may generate a separate video packet comprising the compressed sequence. In a particular embodiment, the computing device 130 may combine the separate video packet with any other video packets generated for transmission or storage. In a particular embodiment, the computing device 130 may transmit or store any video packet as it is generated.

[0020] The present disclosure contemplates any suitable network 110. By way of example and not limitation, one or more portions of network 110 may include an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), a portion of the Internet, a portion of a public switched telephone network (PSTN), a cellular telephone network, or a combination of two or more of these. Network 110 may include one or more networks 110.

[0021] Link 150 can connect computing device 130 and third-party system 170 to communication network 110 or to each other. The present disclosure contemplates any suitable link 150. In a specific embodiment, one or more links 150 include one or more wired (e.g., digital subscriber line (DSL) or cable data service interface specification (DOCSIS)), wireless (e.g., Wi-Fi or Worldwide Interoperability for Microwave Access (WiMAX)) or optical (e.g., synchronous optical network (SONET) or synchronous digital hierarchy (SDH)) links. In a specific embodiment, one or more links 750 each include a self-organizing network, an intranet, an extranet, VPN, LAN, WLAN, WAN, WWAN, MAN, a part of the Internet, a part of the PSTN, a network based on cellular technology, a network based on satellite communication technology, other links 150, or a combination of two or more such links 150. In the entire network environment 100, the link 150 is not necessarily the same. In one or more aspects, one or more first links 150 may be different from one or more second links 150.

[0022] Figure 2An exemplary process 200 for performing object classification using an image is shown. In a particular embodiment, the computing device 130 may receive an image 202 from a camera 134. In a particular embodiment, the image 202 may include a plurality of different objects 204a-204c. In a particular embodiment, the computing device 130 may classify the detected objects 204 using the machine learning model 132 and identify one or more objects of interest from the detected objects 204. By way of example and not limitation, the computing device 130 may identify a stop sign 204c from the image 202. In a particular embodiment, the computing device 130 may classify each identified object 204 in the image 202 using a classification table 206 and place them in a category 208. In a particular embodiment, the machine learning model 132 may have a set of predetermined categories for classifying any identified object in the image. In a particular embodiment, when a new object that has not yet been classified is identified, the machine learning model 132 may add categories as needed. In a particular embodiment, the computing device 130 may classify the detected object into one of a plurality of categories. By way of example and not limitation, computing device 130 may identify object of interest 204b as a miscellaneous object. In certain embodiments, computing device 130 may classify the detected object of interest into one of a plurality of categories. Computing device 130 may identify a sequence of interest based on detecting an object of interest of a particular category.

[0023] In certain embodiments, the machine learning model 132 may be trained to understand the environment in which the computing device 130 is located. By way of example and not limitation, the computing device 130 may be located in a gun store. Considering the location and objects (e.g., guns) in the camera field of view of the computing device 130, it may be common to identify the detected object as a weapon. Therefore, the machine learning model 132 may be trained to not mark the gun as an object of interest. In certain embodiments, the machine learning model 132 may use the context of the computing device 130 in order to correctly identify the object of interest. In certain embodiments, the context may include which objects are usually in the camera field of view of the computing device 130. In certain embodiments, the computing device may modify the resolution of the video package based on the category of one or more detected objects of interest. By way of example and not limitation, a detected object of interest of the weapon category may cause the computing device 130 to generate a video package with the highest possible resolution. By way of example and not limitation, a detected object of interest of the miscellaneous category may cause the computing device 130 to generate a video package with a slightly reduced resolution.

[0024] In certain embodiments, the machine learning model 132 may use a plurality of different libraries for different environments. By way of example and not limitation, if the computing device 130 is located in a restaurant, the machine learning model 132 may use the restaurant library to identify common objects that will be detected within the restaurant setting. By way of example and not limitation, a steak knife will be a common object within the restaurant setting, so if a steak knife appears in an image of a video stream, it may not be identified as an object of interest. In certain embodiments, the machine learning model 132 may determine whether a specific library needs to be updated for a given location. In certain embodiments, the machine learning model 132 may add or remove objects that will be identified as objects of interest within a specific environment. By way of example and not limitation, if the computing device 130 often detects miscellaneous items that are detected as objects of interest, the machine learning model 132 may remove them. For example, a hockey puck may initially be detected as an object of interest in the restaurant setting, but if it appears frequently, it may be removed because the restaurant has a table hockey game that uses a hockey puck.

[0025] Figure 3An exemplary video stream 300 received from a camera is shown. In certain embodiments, the video stream 300 may include a plurality of frames 302 containing images. Each image within the frame 302 may include a plurality of objects 304, 306, 308. In certain embodiments, the computing device 130 may use the machine learning model 132 to detect objects within the image of the frame 302. Based on the detected objects, the computing device 130 may classify each detected object in the image into one or more of a plurality of categories. In certain embodiments, the computing device 130 may use the machine learning model 132 to analyze the image to identify one or more objects of interest from the detected objects based on the categories and the context of the computing device 130. In certain embodiments, the computing device 130 may identify the object 308 as an object of interest based on the category of the object 308 and the context of the computing device 130. By way of example and not limitation, the computing device 130 may identify the object 308 as a sticker that is not commonly seen in street scenes, and therefore may mark the sticker as an object of interest. In certain embodiments, before an action is performed with the detected object 308, the object 308 may not initially be identified as an object of interest. By way of example and not limitation, a student walking along a street may have a backpack full of stickers, and this may be a regular event. However, when stickers are used in a specific manner, such as in a manner that destroys the appearance of the sign 304, the machine learning model 132 may recognize when the action is performed and detect an object of interest. By way of another example and not limitation, in an office setting, files may be common detected objects, so when people carry folders or boxes of files through the camera field of view of the computing device 130, the machine learning model 132 may determine that the file is not an object of interest. However, if someone walks through the camera field of view, trips and scatters the files on the floor, the machine learning model 132 may identify the file as an object of interest. By way of another example and not limitation, if a weapon is detected in a gun store, the weapon may not be detected as an object of interest, but if a person wielding a weapon enters the field of view, the machine learning model 132 may detect an object of interest due to the action being performed with the weapon.

[0026] Figure 4An exemplary video package 400 generated by the computing device 130 based on the AI ​​detection and classification results is shown. In a particular embodiment, the computing device 130 may identify a sequence of interest based on the detection of an object of interest in the image 302. The computing device 130 may identify the object 308 as an object of interest and the image 55 as the initial frame 404a of the sequence of interest 404. In a particular embodiment, the computing device 130 may generate a video package 400 including the frame 402 and the sequence of interest 404. In a particular embodiment, the computing device 130 may make the sequence of interest at the same resolution as the captured image. The computing device 130 may compress the image of the frame 402 in which the object of interest is not detected to reduce the resolution. Therefore, the computing device 130 may reduce the storage size of the image of the frame 402. By way of example and not limitation, since the computing device 130 detects the object 308 as an object of interest, other images without the object 308 may be compressed. As shown, the computing device 130 may compress images 1 to 30 because the object 308 is not within these images. The computing device 130 may generate a video packet 400 including a frame 402 and an interest sequence 404. In a particular embodiment, the interest sequence 404 may include an initial frame 404a in which an object of interest is first detected and an end frame 404c in which an object of interest is last detected. In this case, if the image does not change within a predetermined amount of frames, the computing device 130 may identify the end frame 404c. By way of example and not limitation, since the object 308 is a sticker that damages the appearance of the sign 304, no change will occur unless another detected object is identified in a subsequent image, so the computing device may end the interest sequence 404 after a threshold number of frames without changes in the image. In a particular embodiment, the computing device 130 may analyze the image of the video stream 300 to determine whether there is a threshold amount of change. By way of example and not limitation, if a leaf falls into the field of view of the image, it may not be a significant change. However, if someone enters the field of view of the image again, the computing device 130 may identify another interest sequence. In a particular embodiment, the computing device 130 may identify a threshold change by determining how many pixels have changed compared to the previous image. If a threshold number of pixels change from one image to the next, computing device 130 may identify another sequence of interest.

[0027] In certain embodiments, if the computing device 130 determines that the image has not changed for any given number of frames, the computing device 130 may identify a frame of the compressed sequence that represents the compressed sequence and replace the compressed sequence with the frame. In addition, since the computing device 130 can replace the compressed sequence with a frame, the computing device 130 can restore the resolution of the frame so that the image is at the highest resolution. In certain embodiments, the computing device 130 can use a buffer to periodically identify any changes in the image received from the video stream. By way of example and not limitation, if the camera field of view of the computing device 130 is directed to a single door, the identified sequence of interest may be when the door is opened and closed or whether there is anything (e.g., a person opening the door) entering the camera field of view. Therefore, if no changes have occurred, the computing device 130 can continue to use the same image representing the video stream. If a sequence of interest has been identified, the computing device 300 can use the buffer to retroactively add previous frames that have not been compressed to the sequence of interest. By way of example and not limitation, if someone is walking to the cash register of a store, the computing device 130 can determine that this is a regular event and is not identified as a sequence of interest. However, if at a later point in time, the person draws a weapon, computing device 130 may identify a sequence of interest and retroactively add frames in the buffer that would correspond to the first time the person was identified within an image of the received video stream.

[0028] In certain embodiments, computing device 130 may continuously upload or store sequence of interest 404 as it is received from camera 134. That is, computing device 130 may generate a one-frame video packet to be uploaded or stored. In certain embodiments, computing device 130 may determine any number of frames to be included in the video packet to be uploaded or stored.

[0029] Figure 5 An exemplary method for changing audio or video compression based on identification of an object of interest using a machine learning model is shown. The method may begin at step 510, where a computing device may receive a video stream comprising a plurality of frames from one or more cameras. In particular embodiments, the video stream may be received at a first quality. The first quality may be at a highest resolution achievable by the camera. At step 520, the computing device may analyze images in the frames using a machine learning model. In particular embodiments, the machine learning model may be trained to detect one or more objects of interest in the images. At step 530, the computing device may identify a sequence of interest comprising a first plurality of consecutive frames of the video stream. In particular embodiments, at least one object of interest may be detected in at least one of the consecutive frames. At step 540, the computing device may generate a video packet comprising the sequence of interest. Particular embodiments may repeat steps 540 to 550, where appropriate. Figure 5 Although the present disclosure will Figure 5 The specific steps of the method are described and shown as occurring in a specific order, but the present disclosure contemplates Figure 5 Any suitable steps of the method may occur in any suitable order. In addition, although the present disclosure describes and illustrates methods for using a machine learning model to change audio or video compression based on the recognition of an object of interest, including Figure 5 The present disclosure contemplates any suitable method for using a machine learning model to change audio or video compression based on the recognition of an object of interest, including any suitable steps, which may include, where appropriate, Figure 5 All steps, part of the steps, or none of the steps Figure 5 Furthermore, although the present disclosure describes and illustrates the steps of performing Figure 5 specific components, devices or systems for specific steps of the method, but the present disclosure contemplates performing Figure 5 Any suitable combination of any suitable components, devices, or systems of any suitable steps of the method.

[0030] Figure 6 An exemplary network environment 600 associated with one or more machine learning systems is shown. The network environment 600 includes a user 601, a client system 630 connected to each other via a network 610, a client-hosted machine learning system 640, a server-hosted machine learning system 660, and a third-party system 670. Figure 6 A particular arrangement of user 601, client system 630, machine learning system 660, third-party system 670, and network 610 is shown, but the present disclosure contemplates any suitable arrangement of user 601, client system 630, machine learning system 640, 660, third-party system 670, and network 610. By way of example and not limitation, two or more of client system 630, server-hosted machine learning system 660, and third-party system 670 may be connected directly to each other, bypassing network 610. As another example, two or more of client system 630, machine learning system 660, and third-party system 670 may be physically or logically co-located with each other, in whole or in part. Client-hosted machine learning system 640 may be located on client system 630. Furthermore, although Figure 6 A particular number of users 601, client systems 630, machine learning systems 640, 660, third-party systems 670, and networks 610 are shown, but the present disclosure contemplates any suitable number of users 601, client systems 630, machine learning systems 640, 660, third-party systems 670, and networks 610. By way of example and not limitation, network environment 600 may include a plurality of users 601, client systems 630, machine learning systems 640, 660, third-party systems 670, and networks 610.

[0031] In certain embodiments, user 601 may be an individual (human user) such as an application / software developer, an entity (e.g., an enterprise, business, or third-party application), or a group (e.g., a group of individuals or entities) that interacts with or communicates with or through one or more of machine learning systems 640, 660. In certain embodiments, client-hosted machine learning system 640 may be an inference engine and one or more machine learning models. In certain embodiments, server-hosted machine learning system 660 may be a network-addressable computing system for performing tasks using inference engine 104 and one or more machine learning models 106. Server-hosted machine learning system 660 may be accessed directly by other components of network environment 600 or via network 610. Third-party system 670 may be accessed directly by other components of network environment 600 or via network 610. In certain embodiments, one or more users 601 may use one or more client systems 630 to access, send data to, and receive data from client-hosted machine learning system 640, server-hosted machine learning system 660, or third-party system 670. The client system 630 may access the server-hosted machine learning system 660 or the third-party system 670 directly, via the network 610, or via a third-party system. By way of example and not limitation, the client system 630 may access the third-party system 670 via the server-hosted machine learning system 660. The client system 630 may be any suitable computing device, such as, for example, a personal computer, a laptop, a cellular phone, a smart phone, a tablet, or an augmented reality / virtual reality device.

[0032] The present disclosure contemplates any suitable network 610. By way of example and not limitation, one or more portions of network 610 may include an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), a portion of the Internet, a portion of a public switched telephone network (PSTN), a cellular telephone network, or a combination of two or more of these. Network 610 may include one or more networks 610.

[0033] The links 650 may connect the client system 630, the server-hosted machine learning system 660, and the third-party system 670 to the communication network 610 or to each other. The present disclosure contemplates any suitable links 650. In a particular embodiment, one or more links 650 include one or more wired (e.g., digital subscriber line (DSL) or cable data service interface specification (DOCSIS)), wireless (e.g., Wi-Fi or Worldwide Interoperability for Microwave Access (WiMAX)), or optical (e.g., synchronous optical network (SONET) or synchronous digital hierarchy (SDH)) links. In a particular embodiment, one or more links 650 each include a self-organizing network, an intranet, an extranet, a VPN, a LAN, a WLAN, a WAN, a WWAN, a MAN, a portion of the Internet, a portion of the PSTN, a network based on cellular technology, a network based on satellite communication technology, other links 650, or a combination of two or more such links 650. The links 650 are not necessarily the same throughout the network environment 600. In one or more aspects, one or more first links 650 may be different from one or more second links 650.

[0034] Figure 7 An exemplary computer system 700 is shown. In a particular embodiment, one or more computer systems 700 perform one or more steps of one or more methods described or shown herein. In a particular embodiment, one or more computer systems 700 provide the functionality described or shown herein. In a particular embodiment, software running on one or more computer systems 700 performs one or more steps of one or more methods described or shown herein or provides the functionality described or shown herein. A particular embodiment includes one or more portions of one or more computer systems 700. In this article, where appropriate, reference to a computer system may include a computing device and vice versa. In addition, where appropriate, reference to a computer system may include one or more computer systems.

[0035] The present disclosure contemplates any suitable number of computer systems 700. The present disclosure contemplates computer systems 700 in any suitable physical form. By way of example and not limitation, computer system 700 may be an embedded computer system, a system on a chip (SOC), a single board computer system (SBC) (e.g., a computer on a module (COM) or a system on a module (SOM)), a desktop computer system, a laptop or notebook computer system, an interactive kiosk, a mainframe, a computer system network, a mobile phone, a personal digital assistant (PDA), a server, a tablet computer system, an augmented reality / virtual reality device, or a combination of two or more of these. Where appropriate, computer system 700 may include one or more computer systems 700; may be unified or distributed; may span multiple locations; may span multiple machines; may span multiple data centers; or be located in the cloud, which may include one or more cloud components in one or more networks. Where appropriate, one or more computer systems 700 may perform one or more steps of one or more methods described or shown herein without substantial spatial or temporal limitations. By way of example and not limitation, one or more computer systems 700 may perform one or more steps of one or more methods described or shown herein in real time or in batch mode. Where appropriate, one or more computer systems 700 may perform at different times or at different locations one or more steps of one or more methods described or illustrated herein.

[0036] In a particular embodiment, computer system 700 may include processor 702, memory 704, storage 706, input / output (I / O) interface 708, communication interface 710, and / or bus 712. Although this disclosure describes and illustrates a particular computer system having particular numbers of particular components in a particular arrangement, this disclosure contemplates any suitable computer system having any suitable numbers of any suitable components in any suitable arrangement.

[0037] In a particular embodiment, the processor 702 includes hardware for executing instructions, such as instructions for writing a computer program. By way of example and not limitation, to execute instructions, the processor 702 may retrieve (or fetch) instructions from an internal register, an internal cache, a memory 704, or a storage device 706; decode and execute them; and then write one or more results to an internal register, an internal cache, a memory 704, or a storage device 706. In a particular embodiment, the processor 702 may include one or more internal caches for data, instructions, or addresses. Where appropriate, the present disclosure contemplates a processor 702 that includes any appropriate number of any appropriate internal caches. By way of example and not limitation, the processor 702 may include one or more instruction caches, one or more data caches, and one or more translation lookaside buffers (TLBs). The instructions in the instruction cache may be copies of instructions in the memory 704 or the storage device 706, and the instruction cache may speed up the retrieval of those instructions by the processor 702. The data in the data cache may be a copy of data in the memory 704 or storage device 706 for instructions executed at the processor 702 to operate on; the results of previous instructions executed at the processor 702 for subsequent instructions executed at the processor 702 to access or write to the memory 704 or storage device 706; or other appropriate data. The data cache may speed up read or write operations of the processor 702. The TLB may speed up virtual address translation of the processor 702. In a particular embodiment, the processor 702 may include one or more internal registers for data, instructions, or addresses. Where appropriate, the present disclosure contemplates a processor 702 including any appropriate number of any appropriate internal registers. Where appropriate, the processor 702 may include one or more arithmetic logic units (ALUs); may be a multi-core processor; or may include one or more processors 702. Although the present disclosure describes and illustrates a particular processor, the present disclosure also contemplates any appropriate processor.

[0038] In a particular embodiment, the memory 704 includes a main memory for storing instructions for execution by the processor 702 or data for operation by the processor 702. By way of example and not limitation, the computer system 700 may load instructions from the storage device 706 or another source (e.g., another computer system 700) to the memory 704. The processor 702 may then load the instructions from the memory 704 to an internal register or an internal cache. In order to execute the instructions, the processor 702 may retrieve the instructions from the internal register or the internal cache and decode them. During or after the execution of the instructions, the processor 702 may write one or more results (which may be intermediate results or final results) to the internal register or the internal cache. The processor 702 may then write one or more of these results to the memory 704. In a particular embodiment, the processor 702 only executes instructions in one or more internal registers or internal caches or in the memory 704 (rather than the storage device 706 or other location), and only operates on data in one or more internal registers or internal caches or in the memory 704 (rather than the storage device 706 or other location). One or more memory buses (which may each include an address bus and a data bus) may couple the processor 702 to the memory 704. The bus 712 may include one or more memory buses, as described below. In a particular embodiment, one or more memory management units (MMUs) are located between the processor 702 and the memory 704 and facilitate access to the memory 704 requested by the processor 702. In a particular embodiment, the memory 704 includes a random access memory (RAM). The RAM may be a volatile memory, and where appropriate, the RAM may be a dynamic RAM (DRAM) or a static RAM (SRAM). In addition, where appropriate, the RAM may be a single-port or multi-port RAM. The present disclosure contemplates any suitable RAM. Where appropriate, the memory 704 may include one or more memories 704. Although the present disclosure describes and illustrates a specific memory, the present disclosure also contemplates any suitable memory.

[0039] In a particular embodiment, the storage device 706 includes a mass storage device for data or instructions. By way of example and not limitation, the storage device 706 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the storage device 706 may include a removable or non-removable (or fixed) medium. Where appropriate, the storage device 706 may be inside or outside the computer system 700. In a particular embodiment, the storage device 706 is a non-volatile solid-state memory. In a particular embodiment, the storage device 706 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), a flash memory, or a combination of two or more of these. The present disclosure contemplates a mass storage device 706 in any suitable physical form. Where appropriate, storage 706 may include one or more storage control units that facilitate communications between processor 702 and storage 706. Where appropriate, storage 706 may include one or more storage devices 706. Although this disclosure describes and illustrates particular storage devices, this disclosure contemplates any suitable storage devices.

[0040] In a particular embodiment, I / O interface 708 includes hardware, software or both, thereby providing one or more interfaces for communication between computer system 700 and one or more I / O devices. Where appropriate, computer system 700 may include one or more of these I / O devices. One or more of these I / O devices may allow communication between an individual and computer system 700. By way of example and not limitation, I / O devices may include a keyboard, a keypad, a microphone, a monitor, a mouse, a printer, a scanner, a loudspeaker, a static camera, a stylus, a tablet computer, a touch screen, a trackball, a camera, another suitable I / O device or a combination of two or more of these. I / O devices may include one or more sensors. The present disclosure contemplates any suitable I / O device and any suitable I / O interface 708 for them. Where appropriate, I / O interface 708 may include one or more devices or software drivers that enable processor 702 to drive one or more of these I / O devices. Where appropriate, I / O interface 708 may include one or more I / O interfaces 708. Although this disclosure describes and illustrates a particular I / O interface, this disclosure contemplates any suitable I / O interface.

[0041] In a particular embodiment, the communication interface 710 includes hardware, software, or both that provide one or more interfaces for communicating (e.g., packet-based communication) between the computer system 700 and one or more other computer systems 700 or one or more networks. By way of example and not limitation, the communication interface 710 may include a network interface controller (NIC) or a network adapter for communicating with an Ethernet or other wired network, or a wireless NIC (WNIC) or a wireless adapter for communicating with a wireless network such as a WI-FI network. The present disclosure contemplates any suitable network and any suitable communication interface 710 for it. By way of example and not limitation, the computer system 700 may communicate with one or more parts of a self-organizing network, a personal area network (PAN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), the Internet, or a combination of two or more of these. One or more parts of one or more of these networks may be wired or wireless. For example, the computer system 700 may communicate with a wireless PAN (WPAN) (e.g., a BLUETOOTH WPAN), a WI-FI network, a WI-MAX network, a cellular telephone network (e.g., a Global System for Mobile Communications (GSM) network), other suitable wireless networks, or a combination of two or more of these. Where appropriate, the computer system 700 may include any suitable communication interface 710 for any of these networks. Where appropriate, the communication interface 710 may include one or more communication interfaces 710. Although the present disclosure describes and illustrates a particular communication interface, the present disclosure also contemplates any suitable communication interface.

[0042] In a particular embodiment, bus 712 includes hardware, software, or both that couple components of computer system 700 to each other. By way of example and not limitation, bus 712 may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard architecture (EISA) bus, a front side bus (FSB), a hypertransport (HT) interconnect, an industry standard architecture (ISA) bus, an infinite bandwidth interconnect, a pin-less interface (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCIe) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local area (VLB) bus, other suitable buses, or a combination of two or more of these. Where appropriate, bus 712 may include one or more buses 712. Although the present disclosure describes and illustrates a specific bus, the present disclosure also contemplates any suitable bus or interconnect.

[0043] Herein, where appropriate, a computer-readable non-transitory storage medium may include one or more semiconductor-based or other integrated circuits (ICs) (e.g., field programmable gate arrays (FPGAs) or application-specific ICs (ASICs)), hard disk drives (HDDs), hybrid hard disk drives (HHDs), optical disks, optical disk drives (ODDs), magneto-optical disks, magneto-optical drives, floppy disks, floppy disk drives (FDDs), magnetic tapes, solid-state drives (SSDs), RAM drives, secure digital cards or drives, any other suitable computer-readable non-transitory storage media, or any suitable combination of two or more of these. Where appropriate, a computer-readable non-transitory storage medium may be volatile, non-volatile, or a combination of volatile and non-volatile.

[0044] As used herein, unless expressly indicated otherwise or indicated by context, "or" is inclusive and not exclusive. Thus, as used herein, "A or B" means "A, B, or both," unless expressly indicated otherwise or indicated by context. Furthermore, "and" means both jointly and severally, unless expressly indicated otherwise or indicated by context. Thus, as used herein, "A and B" means "A and B, jointly or severally," unless expressly indicated otherwise or indicated by context.

[0045] The scope of the present disclosure covers all changes, substitutions, variations, modifications and modifications of the exemplary embodiments described or shown herein that will be understood by a person of ordinary skill in the art. The scope of the present disclosure is not limited to the exemplary embodiments described or shown herein. In addition, although the present disclosure describes and shows that the corresponding embodiments of this article include specific parts, elements, features, functions, operations or steps, any of these embodiments may include any combination or arrangement of any parts, elements, features, functions, operations or steps described or shown in any position of this article that will be understood by a person of ordinary skill in the art. In addition, the device or system or the parts of the device or system mentioned in the attached claims are adapted to, arranged to, capable of, configured to, allowed to, operable to or capable of operating to perform a specific function, including: the device, system, component, whether or not it itself or the specific function is activated, turned on or unlocked, as long as the device, system or component is so adapted, arranged, empowered, configured, empowered, operated, or operated. In addition, although the present disclosure describes or shows a specific embodiment that provides a specific advantage, a specific embodiment may provide some or all of these advantages or not provide these advantages.

Claims

1. A method for generating a video package, the method comprising: receiving a video stream comprising a plurality of frames from one or more cameras, wherein the video stream is received at a first quality; analyzing the image in the frame using a machine learning model, wherein the machine learning model has been trained to detect one or more objects of interest in the image; identifying a sequence of interest comprising a first plurality of consecutive frames of the video stream, wherein at least one object of interest is detected in at least one frame of the consecutive frames; and A video package is generated including the sequence of interest.

2. The method according to claim 1, further comprising: In response to determining that the one or more objects of interest are not detected in a minimum number of images in the frames following the sequence of interest, the video packet is transmitted.

3. The method according to claim 1, further comprising: In response to determining that the one or more objects of interest are not detected in a minimum number of images in the frames following the sequence of interest, the video packet is stored.

4. The method according to claim 1, further comprising: During the analysis, in response to detecting the one or more objects of interest in the image, storing of frames of the video stream corresponding to the sequence of interest in a buffer is initiated.

5. The method according to claim 4, further comprising: In response to determining that the one or more objects of interest have not been detected in a minimum number of images in the frames following the sequence of interest, the storing of the frames in the buffer is ended. The method according to claim 5 , wherein the video packet is generated after finishing storing the frame in the buffer.

7. The method of claim 4, wherein the video packets are generated in response to determining that the buffer has fallen below a minimum threshold of available capacity.

8. The method according to claim 1, further comprising: determining that the object of interest is not detected in an image of a sequence of consecutive video frames including a second plurality of consecutive frames of the video stream received before or after the sequence of interest; responsive to determining that the object of interest is not detected in images of the sequence of consecutive video frames, compressing the sequence of consecutive video frames to a second quality, wherein the compressing reduces a resolution of images in the second plurality of consecutive frames; and A separate video packet is generated that includes the compressed sequence.

9. The method of claim 8, wherein the separate video packet comprising the compressed sequence is included in the video packet comprising the sequence of interest.

10. The method according to claim 8, further comprising: In response to determining that the one or more objects of interest are not in a threshold number of images in the frames following the compressed sequence, the individual video packets are transmitted.

11. The method according to claim 8, further comprising: In response to determining that the one or more objects of interest are not in a threshold number of images in the frames following the compressed sequence, the individual video packets are stored.

12. The method according to claim 8, further comprising: identifying a frame of the compressed sequence representing the compressed sequence; and The compressed sequence is replaced by the one frame.

13. The method according to claim 1, further comprising: The one or more detected objects of interest in the image are classified into one of a plurality of categories, wherein identifying the sequence of interest is based on detecting an object of interest of a particular category among the plurality of categories.

14. The method according to claim 13, further comprising: A resolution of the video packet is modified based on the detected categories of the one or more objects of interest.

15. The method according to claim 1, further comprising: In response to detecting the at least one object of interest in at least one frame of the consecutive frames of the sequence of interest, one or more other computing devices are triggered to generate additional video packets from their corresponding video streams, wherein each of the additional video packets includes a second plurality of consecutive frames, and the second plurality of consecutive frames correspond to time frames of the first plurality of consecutive frames.

16. The method according to claim 1, wherein analyzing the images in the frames using the machine learning model comprises detecting the at least one object of interest in at least one frame in the consecutive frames, Wherein identifying the sequence of interest comprises: responsive to detecting the at least one object of interest, identifying a contiguous subset of the plurality of frames in the video stream, the subset corresponding to the first plurality of contiguous frames of the video stream; as well as Wherein generating the video packet comprises: including an identified contiguous subset of the plurality of frames in the video stream in the video packet at a first resolution, and not including remaining frames of the plurality of frames in the video stream in the video packet at the first resolution.

17. The method of claim 1, wherein: The video packet includes a first plurality of consecutive frames in the video stream, wherein the first plurality of consecutive frames includes at least one consecutive frame in which the at least one object of interest is detected and at least one frame in which the object of interest is not detected.

18. A computer readable non-transitory storage medium containing software operable, when executed, to perform the steps of the method according to any one of claims 1 to 17.

19. A system for generating a video package, the system comprising: one or more processors; and a non-volatile memory coupled to the processor, the non-volatile memory comprising instructions executable by the processor, the processor being operable to perform the steps of the method according to any one of claims 1 to 17 when executing the instructions.