ultralytics 8.1.0 YOLOv8 Oriented Bounding Box (OBB) release (#7463)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com> Co-authored-by: Yakuho <Yakuho@foxmail.com> Co-authored-by: Oran <75175510+Acenath@users.noreply.github.com>
This commit is contained in:
parent
54e61963c8
commit
808984c6cf
95 changed files with 787 additions and 752 deletions
|
|
@ -240,7 +240,7 @@ char* YOLO_V8::TensorProcess(clock_t& starttime_1, cv::Mat& iImg, N& blob, std::
|
|||
}
|
||||
//Note:
|
||||
//ultralytics add transpose operator to the output of yolov8 model.which make yolov8/v5/v7 has same shape
|
||||
//https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt
|
||||
//https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt
|
||||
//rowData = rowData.t();
|
||||
|
||||
float* data = (float*)rawData.data;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,31 @@ counting_regions = [
|
|||
|
||||
|
||||
def mouse_callback(event, x, y, flags, param):
|
||||
"""Mouse call back event."""
|
||||
"""
|
||||
Handles mouse events for region manipulation.
|
||||
|
||||
Parameters:
|
||||
event (int): The mouse event type (e.g., cv2.EVENT_LBUTTONDOWN).
|
||||
x (int): The x-coordinate of the mouse pointer.
|
||||
y (int): The y-coordinate of the mouse pointer.
|
||||
flags (int): Additional flags passed by OpenCV.
|
||||
param: Additional parameters passed to the callback (not used in this function).
|
||||
|
||||
Global Variables:
|
||||
current_region (dict): A dictionary representing the current selected region.
|
||||
|
||||
Mouse Events:
|
||||
- LBUTTONDOWN: Initiates dragging for the region containing the clicked point.
|
||||
- MOUSEMOVE: Moves the selected region if dragging is active.
|
||||
- LBUTTONUP: Ends dragging for the selected region.
|
||||
|
||||
Notes:
|
||||
- This function is intended to be used as a callback for OpenCV mouse events.
|
||||
- Requires the existence of the 'counting_regions' list and the 'Polygon' class.
|
||||
|
||||
Example:
|
||||
>>> cv2.setMouseCallback(window_name, mouse_callback)
|
||||
"""
|
||||
global current_region
|
||||
|
||||
# Mouse left button down event
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@
|
|||
"output_type": "stream",
|
||||
"name": "stdout",
|
||||
"text": [
|
||||
"Downloading https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt to 'yolov8n.pt'...\n",
|
||||
"Downloading https://github.com/ultralytics/assets/releases/download/v8.1.0/yolov8n.pt to 'yolov8n.pt'...\n",
|
||||
"100% 6.23M/6.23M [00:00<00:00, 77.2MB/s]\n",
|
||||
"Ultralytics YOLOv8.0.145 🚀 Python-3.10.6 torch-2.0.1+cu118 CUDA:0 (Tesla T4, 15102MiB)\n",
|
||||
"YOLOv8n summary (fused): 168 layers, 3151904 parameters, 0 gradients\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue