Skip to content

Commit

Permalink
Merge pull request #3 from gbr1/foxy-dev
Browse files Browse the repository at this point in the history
0.0.3 - fix rgb8
  • Loading branch information
gbr1 authored Sep 28, 2022
2 parents 7f3e4bf + 92e3987 commit 367e486
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
Binary file modified edgeimpulse_ros/__pycache__/image_classification.cpython-38.pyc
Binary file not shown.
4 changes: 3 additions & 1 deletion edgeimpulse_ros/image_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def parameters_callback(self):
def listener_callback(self, msg):
if len(msg.data):
current_frame = self.cv_bridge.imgmsg_to_cv2(msg)
current_frame = cv2.cvtColor(current_frame, cv2.COLOR_BGR2RGB)
img_encoding = msg.encoding
if img_encoding=="bgr8":
current_frame = cv2.cvtColor(current_frame, cv2.COLOR_BGR2RGB)
if not self.occupied:
self.img = current_frame
self.timer_classify.reset()
Expand Down
Empty file.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>edgeimpulse_ros</name>
<version>0.0.1</version>
<version>0.0.3</version>
<description>ROS2 wrapper for Edge Impulse</description>
<maintainer email="giovannididio.bruno@gmail.com">gbr1</maintainer>
<license>Apache 2.0</license>
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[develop]
script-dir=$base/lib/edgeimpulse_ros
script_dir=$base/lib/edgeimpulse_ros
[install]
install-scripts=$base/lib/edgeimpulse_ros
install_scripts=$base/lib/edgeimpulse_ros
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
submodules = 'edgeimpulse_ros/submodules'
setup(
name=package_name,
version='0.0.2',
version='0.0.3',
packages=[package_name, submodules],
data_files=[
('share/ament_index/resource_index/packages',
Expand Down

0 comments on commit 367e486

Please sign in to comment.