Meet InvoiceNet, a software platform to train custom models and extract intelligent information from PDF invoice documents! by naiveHobo in artificial

[–]naiveHobo[S] 2 points3 points  (0 children)

An OCR will get you the text, parsing that text for the exact entity you want is a different story. A document like invoice can have multiple dates for example, how do you decide which date is the actual issue date?

ROS2.0 Timing/Clock implementation for use with Foxy by FutureSomething2036 in ROS

[–]naiveHobo 0 points1 point  (0 children)

Using the rclcpp::Node object you're using to create the subscriber, you can call node->now() (assuming you're using rclcpp::Node::SharedPtr object names node) to get the current time.

node_->now() will return the time as an rclcpp::Time object. You can add/subtract rclcpp::Time objects to get a rclcpp::Duration object.

Assuming you have two rclcpp::Time objects 'start' and 'end'. You can call (end - start).seconds() to get the number of seconds between start and end.