Added a function check_point which enables user to select the object in anyway they like(not just dragging from topleft to bottom right) #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
selecting the object in other ways like bottom left to top right or other combinations threw this error
Error detected at line 48.
Error detected in file /home/adithya/devel/dlib-18.17/dlib/../dlib/image_processing/correlation_tracker.h.
Error detected in function void dlib::correlation_tracker::start_track(const image_type&, const dlib::drectangle&) [with image_type = numpy_rgb_image].
Failing expression was p.is_empty() == false.
void correlation_tracker::start_track()
You can't give an empty rectangle.
so to make it comfortable for the user, I wrote a simple function to solve the issue.
Regards,
Adithya Selvaprithiviraj