Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-115
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-115
2021-115
Commits
faf2e178
Commit
faf2e178
authored
Jun 27, 2021
by
Maduranga Jayakody
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import model
parent
6a387603
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
Child_detection/electricalObject-detection.py
Child_detection/electricalObject-detection.py
+21
-0
No files found.
Child_detection/electricalObject-detection.py
View file @
faf2e178
# IT18255720
#import libries
from
imageai.Detection
import
ObjectDetection
,
VideoObjectDetection
import
sys
import
os
import
cv2
import
time
from
shapely.geometry
import
box
THRESHOLD_ITEM
=
0.5
THRESHOLD_PERSON
=
0.5
print
(
"Sharp Object Detection Begins"
)
detector
=
VideoObjectDetection
()
detector2
=
VideoObjectDetection
()
detector
.
setModelTypeAsYOLOv3
()
detector
.
setModelPath
(
"../model/yolo.h5"
)
detector
.
loadModel
()
detector2
.
setModelTypeAsRetinaNet
()
detector2
.
setModelPath
(
"model/resnet50_coco_best_v2.1.0.h5"
)
detector2
.
loadModel
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment