Chapter 3 Example 3.4 has a spelling error

Hi
the code here has a spell error in this line visualise=True

(H, hogImage) = feature.hog(gray, orientations=9, pixels_per_cell=(8, 8),    cells_per_block=(2, 2),
   visualise=True) 
import numpy as np
from skimage import exposure 
from skimage import feature
import cv2
 
img = cv2.imread('/home/user/catkin_ws/src/opencv_for_robotics_images/Unit_3/Course_images/test_e.jpg')

imX = 720
imY = 1080
img = cv2.resize(img,(imX,imY))
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

(H, hogImage) = feature.hog(gray, orientations=9, pixels_per_cell=(8, 8),    cells_per_block=(2, 2),
   visualize=True)                                        

hogImage = exposure.rescale_intensity(hogImage, out_range=(0, 255))
hogImage = hogImage.astype("uint8")

cv2.imshow('features',hogImage)
cv2.waitKey(0)
cv2.destroyAllWindows()

ziga

Fixed! Many thanks for your feedback @ziga.rupret

also in chapter 3 exercise 3.7 the file:

roslaunch person_sim move_person_standing.launch

it advertises the topic, and it is ok, but the simulaiton itself does not have a subscriber to that topic, or any node subscribing to it

rostopic info /person_standing/cmd_vel
Type: geometry_msgs/Twist

Publishers:
 * /person_standing_twist_keyboard (http://1_xterm:42009/)

Subscribers: None

maybe a “person model move subscriber is missing?”

Ziga

Hello @ziga.rupret ,

This issue has been solved also Thanks for the feedback.