This disclosure relates generally to video and/or image processing, and, more particularly, to methods and apparatus for absolute scale recovery from monocular video.
The autonomous driving industry is rapidly growing. Autonomous vehicles utilize many types of sensors for detecting roads, obstacles, traffic control devices, etc. One type of sensor is a monocular video camera (e.g., a dashcam, roof mounted camera, etc.), which is a video capture device that uses a single vision path to capture a 2-dimensional image (unlike a binocular or stereo-vision device). Such monocular video cameras are increasingly preferred over stereo video cameras as input devices for autonomous driving systems due to their low expense and easy operability.
The figures are not to scale. In general, the same reference numbers will be used throughout the drawing(s) and accompanying written description to refer to the same or like parts. Connection references (e.g., attached, coupled, connected, and joined) are to be construed broadly and may include intermediate members between a collection of elements and relative movement between elements unless otherwise indicated. As such, connection references do not necessarily infer that two elements are directly connected and in fixed relation to each other.
Descriptors “first,” “second,” “third,” etc. are used herein when identifying multiple elements or components which may be referred to separately. Unless otherwise specified or understood based on their context of use, such descriptors are not intended to impute any meaning of priority, physical order or arrangement in a list, or ordering in time but are merely used as labels for referring to multiple elements or components separately for ease of understanding the disclosed examples. In some examples, the descriptor “first” may be used to refer to an element in the detailed description, while the same element may be referred to in a claim with a different descriptor such as “second” or “third.” In such instances, it should be understood that such descriptors are used merely for ease of referencing multiple elements or components.
Artificial intelligence (AI), including machine learning (ML), deep learning (DL), and/or other artificial machine-driven logic, enables machines (e.g., computers, logic circuits, etc.) to use a model to process input data to generate an output based on patterns and/or associations previously learned by the model via a training process. For instance, the model may be trained with data to recognize patterns and/or associations and follow such patterns and/or associations when processing input data such that other input(s) result in output(s) consistent with the recognized patterns and/or associations.
Many different types of machine learning models and/or machine learning architectures exist. In some examples disclosed herein, a Neural Network (NN) model is used. Using a Neural Network (NN) model enables the interpretation of data wherein patterns can be recognized. In general, machine learning models/architectures that are suitable to use in the example approaches disclosed herein will be Convolutional Neural Network (CNN) and/or Deep Neural Network (DNN), wherein interconnections are not visible outside of the model. However, other types of machine learning models could additionally or alternatively be used such as Recurrent Neural Network (RNN), Support Vector Machine (SVM), Gated Recurrent Unit (GRU), Long Short Term Memory (LSTM), etc.
In general, implementing a ML/AI system involves two phases, a learning/training phase and an inference phase. In the learning/training phase, a training algorithm is used to train a model to operate in accordance with patterns and/or associations based on, for example, training data. In general, the model includes internal parameters that guide how input data is transformed into output data, such as through a series of nodes and connections within the model to transform input data into output data. Additionally, hyperparameters are used as part of the training process to control how the learning is performed (e.g., a learning rate, a number of layers to be used in the machine learning model, etc.). Hyperparameters are defined to be training parameters that are determined prior to initiating the training process.
Different types of training may be performed based on the type of ML/AI model and/or the expected output. For example, supervised training uses inputs and corresponding expected (e.g., labeled) outputs to select parameters (e.g., by iterating over combinations of select parameters) for the ML/AI model that reduce model error. As used herein, labelling refers to an expected output of the machine learning model (e.g., a classification, an expected output value, etc.) Alternatively, unsupervised training (e.g., used in deep learning, a subset of machine learning, etc.) involves inferring patterns from inputs to select parameters for the ML/AI model (e.g., without the benefit of expected (e.g., labeled) outputs).
In examples disclosed herein, ML/AI models are trained using known object heights (e.g., pedestrian height and/or car height). However, any other training algorithm may additionally or alternatively be used. In examples disclosed herein, training is performed on the object height branch, after object heights of various objects (e.g., pedestrian heights) are calculated within each frame of the input monocular video.
In some examples, the ML/AI models may be additionally trained using known object widths (e.g., pedestrian width and/or car width). However, any other training algorithm may additionally or alternatively be used. In some examples, training may be performed on the object width branch, after object widths of various objects (e.g., pedestrian widths) are calculated within each frame of the input monocular video.
In examples disclosed herein, the “object height branch” refers to an example branch of the network model that is used to output object height (e.g., car height, pedestrian height, etc.). In addition to the object height branch, in some examples, one or more of a segmentation backbone network, Feature Pyramid Network (FPN) for object detection, and/or Region of Interest (ROI) network generate an object detection branch for the neural network model consisting of three convolutional layers
Training is performed using hyperparameters that control how the learning is performed (e.g., a learning rate, a number of layers to be used in the machine learning model, etc.).
Training is performed using training data. In examples disclosed herein, the training data originates from the publicly-available KITTI Vision Benchmark dataset. However, any type of dataset of image, video, and/or vision data may be utilized.
When a monocular video is taken for autonomous driving purposes, etc. the input video has limited scope for application in traffic simulation, car trajectory prediction, etc. due to an inability to efficiently recover camera scaling factors from the video.
Current approaches to recover camera parameters and/or scale values from monocular video require a knowledge of the object class (e.g., camera height, camera angle, etc.), which will prove to be unhelpful for applications wherein these parameters are unknown.
Example methods and apparatus disclosed herein receive an input monocular video and process the input without a need for knowledge of any object class parameters to generate a scaling factor. Having the ability to recover scale from these monocular video cameras allows for the capacity to run simulations of car trajectories, etc. from traffic cameras for use in court cases, insurance disputes, etc. Examples disclosed herein utilize scale recovery techniques such as, for example, image segmentation, lane detection, objection detection, etc. to determine camera parameters (e.g., camera height and camera pitch) from an input monocular video. As used herein, “absolute scale” may refer to a scaling factor that is obtained from a zero point, and that which progresses in only one direction, as opposed to a relative scaling that can involve multiple directions and any given starting point in a field. Additionally, in examples disclosed herein, the scale recovery system 100 may hereafter be referred to as the “absolute scale recovery system” 100.
In some examples, the first, second, and/or third monocular cameras 102A, 102B, and/or 102C may be directly linked to the scale recovery circuitry 110, to provide input monocular video at different times to the scale recovery circuitry 110, eliminating the need for a network environment 104 and/or a video database 108 within a data center 106.
The example monocular cameras 102A, 102B, and 102C are vehicle-mounted video cameras that utilize a single image sensor to capture images through a single image path. Alternatively, any other type of camera or image capture device (e.g., infrared cameras, fixed-mounted cameras, portable cameras, user-carried cameras, etc.) may be utilized to provide an input video to the example scale recovery circuitry 110 for scale recovery.
While the example of
The example data retrieval circuitry 205 communicates with the video database 108 of
The example input image segmentation circuitry 210 processes the input video retrieved from the video database 108 to identify road geometry by running each individual video frame through a segmentation backbone network (e.g., Efficient Residual Factorized ConvNet (ERFNet)). The segmentation backbone network parses the images and outputs a composite two-dimensional video with the road geometry and surrounding objects highlighted for further processing.
The example lane detection circuitry 215 runs the identified road geometry in the two-dimensional output of the segmentation backbone network of the example input image segmentation circuitry 210 through a neural network (e.g., 3D-LaneNet network) to determine the layout of lanes on the road in the monocular video input. The neural network processes the segmented video frame-by-frame to predict the three-dimensional layout of lanes on the road for each image. The lane detection circuitry 215 estimates the camera height relative to the ground plane by estimating the road projection plane. The road image is projected into a virtual top view model, and the relative projection for the whole scene is recovered from this model.
The example error prediction circuitry 220 calculates the error of prediction and ground-truth. This error loss is calculated on the top-view model generated by the example lane detection circuitry 215, with cross-entropy and offsets with anchors. The total camera parameter error is estimated as the sum of the camera calibration parameter loss and the lane detection loss.
The camera calibration parameter loss is calculated using the equation calib=|θ−{circumflex over (θ)}|+|hcam−
|, wherein θ refers to the actual pitch of the camera, {circumflex over (θ)} refers to the estimated camera pitch, hcam refers to the actual height of the camera, and
refers to the estimated camera height. The lane detection loss is calculated using the equation
wherein {c, l} denote lane type (e.g., centerlines, lane delimiters, etc.), pti represents the confidence and/or probability of an anchor being a centerline and/or lane delimiter, as used for a cross-entropy loss calculation, and xti and zti refer to the i-th 3D lane, wherein each lane is a set of points for estimated x and -plane coordinates.
The example camera parameter refinement circuitry 225 utilizes a cascade structure to iteratively refine the camera parameters (e.g., camera height and/or camera pitch), to minimize the error that was predicted by the error prediction circuitry 220, to produce estimated camera height and camera pitch values.
The example object detection circuitry 230 leverages a neural network (e.g., Mask RCNN neural network) to automatically detect all cars and pedestrians in each frame of the monocular input video. These detected objects form the detection branch of the neural network.
The example object height loss calculator 235 trains the object branch of the neural network used by the example object detection circuitry 230 with a Gaussian model. The object branch of the neural network is trained using a publicly available dataset which contains known pedestrian heights and car heights (e.g., KITTI dataset). Object height loss is then calculated by considering the difference between the estimated object heights and the actual object heights provided by the object and detection branches of the neural network.
In some examples, the object height loss calculator 235 may be implemented such that the dataset containing known objects heights (e.g., car height and pedestrian height) is stored locally in the video database 108 of
The example relative depth scaling circuitry 240 obtains a ground points mask from the monocular video and reprojects the ground mask points to a three-dimensional world space to estimate the relative depth value. The ground mask points are determined by projecting all image pixels into the 3D space and collecting eight neighboring points of these coordinates. From the neighboring points, four local surfaces are derived by selecting four pairs of points that form 90-degree angles. The final surface norm of each world coordinate is the average of its four neighboring surfaces. Then, the angle between the world coordinate and ground is considered to determine whether the examined point is on the ground.
The relative depth scaling circuitry 240 determines the relative depth of the monocular video by dividing the estimated camera height, as defined by the camera parameter refinement circuitry 225, by the current predicted height for the frame. In some examples, the relative depth scaling circuitry 240 may calculate relative scale for each frame independently, or as a whole.
The example relative translation scaling circuitry 245 takes the estimated depth value, as given by the example relative depth scaling circuitry 240, and projects all image points into the three-dimensional world space using that depth. The relative translation is then calculated using a least-squares approach with the equation
wherein hcam is the predicted height of the camera, and hMt is the height of the camera at the t-th frame of the input video.
The example iterative scale estimation circuitry 250 gathers user input from the example graphical user interface illustrated in
In some examples, user input may be provided to the iterative scale estimation circuitry 250 via the graphical user interface of
The example trajectory plotting circuitry 255 maps the current trajectory of the car based on the calculated scaling factor and the environmental conditions provided by the input monocular video. This trajectory is displayed as a graph on the example graphical user interface depicted in
In some examples, the example data retrieval circuitry 205 of
In some examples, the example input image segmentation circuitry 210 of
In some examples, the example lane detection circuitry 215 of
In some examples, the example error prediction circuitry 220 of
In some examples, the example camera parameter refinement circuitry 225 of
In some examples, the example object detection circuitry 230 of
In some examples, the example object height loss calculator 235 of
In some examples, the example relative depth scaling circuitry 240 of
In some examples, the example relative translation scaling circuitry 245 of
In some examples, the example iterative scale estimation circuitry 250 of
In some examples, the example trajectory plotting circuitry 255 of
While an example manner of implementing the scale recovery circuitry 110 of
While an example manner of implementing the scale recovery system 100 of
A flowchart representative of example hardware logic, machine readable instructions, hardware implemented state machines, and/or any combination thereof for implementing the scale recovery circuitry 110 of
The machine readable instructions described herein may be stored in one or more of a compressed format, an encrypted format, a fragmented format, a compiled format, an executable format, a packaged format, etc. Machine readable instructions as described herein may be stored as data (e.g., portions of instructions, code, representations of code, etc.) that may be utilized to create, manufacture, and/or produce machine executable instructions. For example, the machine readable instructions may be fragmented and stored on one or more storage devices and/or computing devices (e.g., servers). The machine readable instructions may require one or more of installation, modification, adaptation, updating, combining, supplementing, configuring, decryption, decompression, unpacking, distribution, reassignment, compilation, etc. in order to make them directly readable, interpretable, and/or executable by a computing device and/or other machine. For example, the machine readable instructions may be stored in multiple parts, which are individually compressed, encrypted, and stored on separate computing devices, wherein the parts when decrypted, decompressed, and combined form a set of executable instructions that implement a program such as that described herein.
In another example, the machine readable instructions may be stored in a state in which they may be read by a computer, but require addition of a library (e.g., a dynamic link library (DLL)), a software development kit (SDK), an application programming interface (API), etc. in order to execute the instructions on a particular computing device or other device. In another example, the machine readable instructions may need to be configured (e.g., settings stored, data input, network addresses recorded, etc.) before the machine readable instructions and/or the corresponding program(s) can be executed in whole or in part. Thus, the disclosed machine readable instructions and/or corresponding program(s) are intended to encompass such machine readable instructions and/or program(s) regardless of the particular format or state of the machine readable instructions and/or program(s) when stored or otherwise at rest or in transit.
The machine readable instructions described herein can be represented by any past, present, or future instruction language, scripting language, programming language, etc. For example, the machine readable instructions may be represented using any of the following languages: C, C++, Java, C#, Perl, Python, JavaScript, HyperText Markup Language (HTML), Structured Query Language (SQL), Swift, etc.
As mentioned above, the example processes of
“Including” and “comprising” (and all forms and tenses thereof) are used herein to be open ended terms. Thus, whenever a claim employs any form of “include” or “comprise” (e.g., comprises, includes, comprising, including, having, etc.) as a preamble or within a claim recitation of any kind, it is to be understood that additional elements, terms, etc. may be present without falling outside the scope of the corresponding claim or recitation. As used herein, when the phrase “at least” is used as the transition term in, for example, a preamble of a claim, it is open-ended in the same manner as the term “comprising” and “including” are open ended. The term “and/or” when used, for example, in a form such as A, B, and/or C refers to any combination or subset of A, B, C such as (1) A alone, (2) B alone, (3) C alone, (4) A with B, (5) A with C, (6) B with C, and (7) A with B and with C. As used herein in the context of describing structures, components, items, objects and/or things, the phrase “at least one of A and B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, and (3) at least one A and at least one B. Similarly, as used herein in the context of describing structures, components, items, objects and/or things, the phrase “at least one of A or B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, and (3) at least one A and at least one B. As used herein in the context of describing the performance or execution of processes, instructions, actions, activities and/or steps, the phrase “at least one of A and B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, and (3) at least one A and at least one B. Similarly, as used herein in the context of describing the performance or execution of processes, instructions, actions, activities and/or steps, the phrase “at least one of A or B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, and (3) at least one A and at least one B.
As used herein, singular references (e.g., “a”, “an”, “first”, “second”, etc.) do not exclude a plurality. The term “a” or “an” entity, as used herein, refers to one or more of that entity. The terms “a” (or “an”), “one or more”, and “at least one” can be used interchangeably herein. Furthermore, although individually listed, a plurality of means, elements or method actions may be implemented by, e.g., a single unit or processor. Additionally, although individual features may be included in different examples or claims, these may possibly be combined, and the inclusion in different examples or claims does not imply that a combination of features is not feasible and/or advantageous.
As illustrated in
At block 304, the camera parameters (e.g., camera height and/or camera pitch) are estimated. An example process for estimating camera parameters is described in conjunction with
At block 306, the camera parameters (e.g., camera height and/or camera pitch) are iteratively refined. The camera parameters estimated from the segmented video are adjusted after the object height branch is trained with known object (e.g., pedestrians, cars, etc.) heights and the object consistency loss is calculated and minimized. An example process for iteratively refining the camera parameters is described in conjunction with
At block 308, the scale for relative depth is calculated. For each frame in the input monocular video, the camera depth value is estimated as a moving relative scale value. Ground points are obtained from the input video and reprojected into the three-dimensional world place to determine depth. An example process for calculating the scale for relative depth is described in conjunction with
At block 310, the scale calculated in block 308 is iteratively refined with a provided user input, the input to be received via the example graphical user interface of
At block 312, the scaling results are reported for visualization via the graphical user interface of
At block 402, each frame of the monocular input video is passed to a segmentation backbone network (e.g., ERFNet) wherein the neural network will parse the input images to generate a two-dimensional segmentation of the surroundings of the camera.
At block 404, the two-dimensional segmentation results of block 402 are used to calculate the estimated camera parameters (e.g., camera height and camera pitch). The neural network processes the segmented video frame-by-frame to predict the three-dimensional layout of lanes on the road for each image. The camera height is determined relative to the ground plane by estimating the road projection plane. The road image is projected into a virtual top view model, and the estimated camera parameters for the video are calculated.
At block 406, the camera parameter loss is calculated by generating a virtual top-view visualization of the surroundings, using the camera parameters (e.g., camera pitch, camera height) estimated by the process in block 404. The error of prediction and ground-truth is determined, with lane detection loss calculated in the top-view model with cross-entropy and offsets with anchors.
At block 502, a Mask-RCNN deep neural network is utilized to automatically detect all cars and pedestrians in each frame of the monocular input video. These detected objects in the video scene form the detection branch of the neural network model.
At block 504, the object height branch is trained using a known pedestrian and car height, as provided by the publicly-available KITTI dataset. In some examples, the object height branch is trained using a Gaussian training model.
At block 506, the reprojection error for each camera object is defined. This reprojection error is calculated by projecting the i-th object with a detected two-dimensional bounding box onto the video frame, using the estimated camera pitch and camera height values.
At block 508, the object height consistency loss is calculated. Using the principle that the height of the same vehicle should be identical across all frames of the video, the object height consistency loss is determined by indicating the difference of an estimated object height across frames.
At block 602, the ground mask points are obtained from the image segmentation mask.
At block 604, the obtained ground mask points are reprojected into the three-dimensional world space, for each image pixel.
At block 606, for each obtained ground mask point, eight neighboring points are collected.
At block 608, From the neighboring points, four local surfaces are derived by selecting four pairs of points that form 90-degree angles. The final surface norm of each world coordinate is the average of its four neighboring surfaces. Then, the angle between the world coordinate and ground is considered to determine whether the examined point is on the ground. For each point that is to be considered a ground mask point, the distance between that point and all other image pixels is calculated to derive the camera height and relative depth.
In some examples, the graphical user interface 700 may also include a trajectory plot 720 (if groundtruth values have been provided) wherein both the true and predicted trajectories of the ego vehicle are plotted in a top-view model for visualization. This trajectory plot 720 will populate in real-time as the video is played by the user.
The processor platform 1000 of the illustrated example includes processor circuitry 1025. The processor circuitry 1025 of the illustrated example is hardware. For example, the processor circuitry 1025 can be implemented by one or more integrated circuits, logic circuits, FPGAs, microprocessors, CPUs, GPUs, DSPs, and/or microcontrollers from any desired family or manufacturer. The processor circuitry may be implemented by one or more semiconductor based (e.g., silicon based) devices. In this example, the processor circuitry 1025 implements the example data retrieval circuitry 205, the example input image segmentation circuitry 210, the example lane detection circuitry 215, the example error prediction circuitry 220, the example camera parameter refinement circuitry 225, the example object detection circuitry 230, the example object height loss calculator 235, the example relative depth scaling circuitry 240, the example relative translation scaling circuitry 245, the example iterative scale estimation circuitry 250, and the example trajectory plotting circuitry 255.
The processor circuitry 1025 of the illustrated example includes a local memory 1026 (e.g., a cache, registers, etc.). The processor circuitry 1025 of the illustrated example is in communication with a main memory including a volatile memory 1015 and a non-volatile memory 1020 via a bus 1030. The volatile memory 1015 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS® Dynamic Random Access Memory (RDRAM®) and/or any other type of random access memory device. The non-volatile memory 1020 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 1015, 1020 is controlled by a memory controller.
The processor platform 1000 of the illustrated example also includes interface circuitry 1020. The interface circuitry 1020 may be implemented by hardware in accordance with any type of interface standard, such as an Ethernet interface, a universal serial bus (USB) interface, a Bluetooth® interface, a near field communication (NFC) interface, a PCI interface, and/or a PCIe interface.
In the illustrated example, one or more input devices 1022 are connected to the interface circuitry 1020. The input device(s) 1022 permit(s) a user to enter data and/or commands into the processor circuitry 1012. The input device(s) can be implemented by, for example, an audio sensor, a microphone, a camera (still or video), a keyboard, a button, a mouse, a touchscreen, a track-pad, a trackball, isopoint and/or a voice recognition system.
One or more output devices 1050 are also connected to the interface circuitry 1045 of the illustrated example. The output devices 1024 can be implemented, for example, by display devices (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display (LCD), a cathode ray tube (CRT) display, an in-place switching (IPS) display, a touchscreen, etc.), a tactile output device, a printer and/or speaker. The interface circuit 1045 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip and/or a graphics driver processor.
The interface circuitry 1045 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem, a residential gateway, a wireless access point, and/or a network interface to facilitate exchange of data with external machines (e.g., computing devices of any kind) by a network 1010. The communication can be via, for example, an Ethernet connection, a digital subscriber line (DSL) connection, a telephone line connection, a coaxial cable system, a satellite system, a line-of-site wireless system, a cellular telephone system, an optical connection, etc.
The processor platform 1000 of the illustrated example also includes one or more mass storage devices 1035 for storing software and/or data. Examples of such mass storage devices 1035 include magnetic storage devices, floppy disk drives, HDDs, CDs, Blu-ray disk drives, redundant array of independent disks (RAID) systems, solid state storage devices such as flash memory devices, and DVD drives.
The machine executable instructions 1005, which may be implemented by the machine readable instructions of
The cores 1102 may communicate by an example first bus 1104. In some examples, the first bus 1104 may implement a communication bus to effectuate communication associated with one(s) of the cores 1102. For example, the first bus 1104 may implement at least one of an Inter-Integrated Circuit (I2C) bus, a Serial Peripheral Interface (SPI) bus, a PCI bus, or a PCIe bus. Additionally or alternatively, the first bus 1104 may implement any other type of computing or electrical bus. The cores 1102 may obtain data, instructions, and/or signals from one or more external devices by example interface circuitry 1106. The cores 1102 may output data, instructions, and/or signals to the one or more external devices by the interface circuitry 1106. Although the cores 1102 of this example include example local memory 1120 (e.g., Level 1 (L1) cache that may be split into an L1 data cache and an L1 instruction cache), the microprocessor 1100 also includes example shared memory 1110 that may be shared by the cores (e.g., Level 2 (L2_cache)) for high-speed access to data and/or instructions. Data and/or instructions may be transferred (e.g., shared) by writing to and/or reading from the shared memory 1110. The local memory 1120 of each of the cores 1102 and the shared memory 1110 may be part of a hierarchy of storage devices including multiple levels of cache memory and the main memory (e.g., the main memory 1015, 1020 of
Each core 1102 may be referred to as a CPU, DSP, GPU, etc., or any other type of hardware circuitry. Each core 1102 includes control unit circuitry 1114, arithmetic and logic (AL) circuitry (sometimes referred to as an ALU) 1116, a plurality of registers 1118, the L1 cache 1120, and an example second bus 1122. Other structures may be present. For example, each core 1102 may include vector unit circuitry, single instruction multiple data (SIMD) unit circuitry, load/store unit (LSU) circuitry, branch/jump unit circuitry, floating-point unit (FPU) circuitry, etc. The control unit circuitry 1114 includes semiconductor-based circuits structured to control (e.g., coordinate) data movement within the corresponding core 1102. The AL circuitry 1116 includes semiconductor-based circuits structured to perform one or more mathematic and/or logic operations on the data within the corresponding core 1102. The AL circuitry 1116 of some examples performs integer based operations. In other examples, the AL circuitry 1116 also performs floating point operations. In yet other examples, the AL circuitry 1116 may include first AL circuitry that performs integer based operations and second AL circuitry that performs floating point operations. In some examples, the AL circuitry 1116 may be referred to as an Arithmetic Logic Unit (ALU). The registers 1118 are semiconductor-based structures to store data and/or instructions such as results of one or more of the operations performed by the AL circuitry 1116 of the corresponding core 1102. For example, the registers 1118 may include vector register(s), SIMD register(s), general purpose register(s), flag register(s), segment register(s), machine specific register(s), instruction pointer register(s), control register(s), debug register(s), memory management register(s), machine check register(s), etc. The registers 1118 may be arranged in a bank as shown in
Each core 1102 and/or, more generally, the microprocessor 1100 may include additional and/or alternate structures to those shown and described above. For example, one or more clock circuits, one or more power supplies, one or more power gates, one or more cache home agents (CHAs), one or more converged/common mesh stops (CMSs), one or more shifters (e.g., barrel shifter(s)) and/or other circuitry may be present. The microprocessor 1100 is a semiconductor device fabricated to include many transistors interconnected to implement the structures described above in one or more integrated circuits (ICs) contained in one or more packages. The processor circuitry may include and/or cooperate with one or more accelerators. In some examples, accelerators are implemented by logic circuitry to perform certain tasks more quickly and/or efficiently than can be done by a general purpose processor. Examples of accelerators include ASICs and FPGAs such as those discussed herein. A GPU or other programmable device can also be an accelerator. Accelerators may be on-board the processor circuitry, in the same chip package as the processor circuitry and/or in one or more separate packages from the processor circuitry.
More specifically, in contrast to the microprocessor 1100 of
In the example of
The interconnections 1210 of the illustrated example are conductive pathways, traces, vias, or the like that may include electrically controllable switches (e.g., transistors) whose state can be changed by programming (e.g., using an HDL instruction language) to activate or deactivate one or more connections between one or more of the logic gate circuitry 1208 to program desired logic circuits.
The storage circuitry 1212 of the illustrated example is structured to store result(s) of the one or more of the operations performed by corresponding logic gates. The storage circuitry 1212 may be implemented by registers or the like. In the illustrated example, the storage circuitry 1212 is distributed amongst the logic gate circuitry 1208 to facilitate access and increase execution speed.
The example FPGA circuitry 1200 of
Although
In some examples, the processor circuitry 1025 of
Example methods, apparatus, systems, and articles of manufacture to recover scale from a monocular input video are disclosed herein. Further examples and combinations thereof include the following:
Example 1 includes an apparatus comprising a non-transitory computer readable medium, instructions at the apparatus, a logic circuit to execute the instructions to at least segment an input image from a monocular video to detect an object in the camera field, estimate camera parameters from the segmented input image, iteratively refine the estimated camera parameters using object heights, calculate a scale for the video, iteratively refine the scale based on a user input, and report the scaling results for visualization.
Example 2 includes the non-transitory computer readable medium of example 1, wherein the monocular video camera provides direct input to the scale recovery circuitry.
Example 3 includes the non-transitory computer readable medium of example 1, wherein the instructions, when executed, further trigger the input image segmentation to be performed using a segmentation backbone network.
Example 4 includes the non-transitory computer readable medium of example 1, wherein the instructions, when executed, further trigger the video scale to be calculated using a first and second camera parameter.
Example 5 includes the non-transitory computer readable medium of any one of examples 1 and 4, wherein the instructions, when executed, further trigger the adjustment of the first and second camera parameters according to a projection model.
Example 6 includes the non-transitory computer readable medium of example 1, wherein the instructions, when executed, further trigger the reporting of scaling results via a graphical user interface.
Example 7 includes the non-transitory computer readable medium of example 1, wherein the object heights are obtained from a dataset.
Example 8 includes the non-transitory computer readable medium of any one of examples 1 and 7, wherein the instructions, when executed, further trigger the training of a branch of a neural network model using the object heights.
Example 9 includes the non-transitory computer readable medium of any one of examples 7 and 8, wherein the instructions, when executed, further trigger the adjustment of the first and/or second camera parameter using the trained branch of the neural network model.
Example 10 includes the non-transitory computer readable medium of example 1, wherein the user input for iterative scale refinement is provided via a graphical user interface.
Example 11 includes an apparatus to recover scale from monocular video, the apparatus comprising interface circuitry to access an image from a monocular video, and processor circuitry including one or more of at least one of a central processing unit, a graphic processing unit or a digital signal processor, the at least one of the central processing unit, the graphic processing unit or the digital signal processing having control circuitry to control data movement within the processor circuitry, arithmetic and logic circuitry to perform one or more first operations according to instructions, and one or more registers to store a result of the one or more first operations, the instructions in the apparatus, a Field Programmable Gate Array (FPGA), the FPGA including logic gate circuitry, a plurality of configurable interconnections, and storage circuitry, the logic gate circuitry and interconnections to perform one or more second operations, the storage circuitry to tore a result of the one or more second operations, or Application Specific Integrate Circuitry (ASIC) including logic gate circuitry to perform one or more third operations, the processor circuitry to perform at least one of the first operations, the second operations or the third operations to instantiate image segmentation circuitry to segment an input image from the monocular video to detect an object in the camera field, camera parameter refinement circuitry to iteratively refine the estimated camera parameters using object heights, relative depth scalar circuitry to calculate a scale for the video, iterative scale estimation circuitry to iteratively refine the scale based on a user input, and trajectory plotting circuitry to report the scaling results for visualization.
Example 12 includes the apparatus of example 11, wherein the monocular video camera provides direct input to the scale recovery circuitry.
Example 13 includes the apparatus of example 11, wherein the instructions, when executed, further trigger the input image segmentation to be performed using a segmentation backbone network.
Example 14 includes the apparatus of example 11, wherein the instructions, when executed, further trigger the video scale to be calculated using a first and second camera parameter.
Example 15 includes the apparatus of any one of examples 11 and 14, wherein the instructions, when executed, further trigger the adjustment of the first and second camera parameters according to a projection model.
Example 16 includes the apparatus of example 11, wherein the instructions, when executed, further trigger the reporting of scaling results via a graphical user interface.
Example 17 includes apparatus of example 11, wherein the object heights are obtained from a dataset.
Example 18 includes the apparatus of any one of examples 11 and 17, wherein the instructions, when executed, further trigger the training of a branch of a neural network model using the object heights.
Example 19 includes the apparatus of any one of examples 17 and 18, wherein the instructions, when executed, further trigger the adjustment of the first and/or second camera parameter using the trained branch of the neural network model.
Example 20 includes the apparatus of example 11, wherein the user input for iterative scale refinement is provided via a graphical user interface.
Example 21 includes a method for scale recovery from monocular video, the method comprising estimating camera parameters from a monocular input video, iteratively refining the estimated camera parameters, calculating the scale for relative depth, iteratively refining the scale with provided user input, and reporting the scaling results for visualization.
Example 22 includes the method of example 21, wherein the monocular video camera provides direct input to the scale recovery circuitry.
Example 23 includes method of example 1, wherein the instructions, when executed, further trigger the input image segmentation to be performed using a segmentation backbone network.
Example 24 includes the method of example 21, wherein the instructions, when executed, further trigger the video scale to be calculated using a first and second camera parameter.
Example 25 includes the method of any one of examples 21 and 24, wherein the instructions, when executed, further trigger the adjustment of the first and second camera parameters according to a projection model.
Example 26 includes the method of example 21, wherein the instructions, when executed, further trigger the reporting of scaling results via a graphical user interface.
Example 27 includes the method of example 21, wherein the object heights are obtained from a dataset.
Example 28 includes the method of any one of examples 21 and 27, wherein the instructions, when executed, further trigger the training of a branch of a neural network model using the object heights.
Example 29 includes the method of any one of examples 27 and 28, wherein the instructions, when executed, further trigger the adjustment of the first and/or second camera parameter using the trained branch of the neural network model.
Example 30 includes the method of example 21, wherein the user input for iterative scale refinement is provided via a graphical user interface.
Example 31 includes an apparatus for scale recovery from monocular video, the apparatus comprising means for estimating camera parameters from a monocular input video, means for iteratively refining the estimated camera parameters, means for calculating the scale for relative depth, means for iteratively refining the scale with provided user input, and means for reporting the scaling results for visualization.
Example 32 includes the apparatus of example 31, wherein the means for estimating camera parameters from a monocular input video is to further include the use of a segmentation backbone network.
Example 33 includes the apparatus of example 31, wherein the means for iteratively refining the estimated camera parameter is to further include the use of a lane detection network.
Example 34 includes the apparatus of example 31, wherein the means for calculating the scale for relative depth is to further include the calculation of a first and second camera parameter.
Example 35 includes the apparatus of any one of examples 31 and 34, wherein the instructions, when executed, further trigger the adjustment of at least one of the first or second camera parameters according to a projection model.
Example 36 includes the apparatus of example 31, wherein the means for iteratively refining the scale with provided user input is to further include the use of a graphical user interface.
Example 37 includes apparatus of example 31, wherein the means for reporting the scaling results for visualization is to further include the use of a graphical user interface.
From the foregoing, it will be appreciated that example methods, apparatus and articles of manufacture have been disclosed that extend the applications of recovering scale (e.g., absolute scale) from monocular video for traffic accident simulation, etc. Monocular video cameras are preferred over stereo video cameras for certain applications like autonomous driving vehicles, traffic cameras, etc. due to their low cost and ease of use.
Although certain example methods, apparatus and articles of manufacture have been disclosed herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all methods, apparatus and articles of manufacture fairly falling within the scope of the claims of this patent.
The following claims are hereby incorporated into this Detailed Description by this reference, with each claim standing on its own as a separate embodiment of the present disclosure.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2021/102362 | 6/25/2021 | WO |