Is LINE_TRACKING efficient when tracing lines in nxtCam? Is OBJECT_TRACKING more efficient?
When the camera recognized the object, it succeeded to drive, but failed to travel along the center line.
And I got the size through the function below, but I could not get the center.
nxt Can I get sample sources related to CamV5?
public Rectangle getRectangle1 (int id) {
for (int i = 0; i <4; i ++) buf [i] = 0;
getData (0x44 + (id * 5), buf, 4);
return new Rectangle (buf [0] & 0xFF, buf [1] & 0xFF,
(buf [2] & 0xFF) - (buf [0] & 0xFF),
(buf [3] & 0xFF) - (buf [1] & 0xFF));
}
nxtcamV5 line tracing issue
Moderators: roger, gloomyandy, skoehler
-
- New User
- Posts: 18
- Joined: Thu Jan 11, 2018 11:35 am
- esmetaman
- Advanced Member
- Posts: 372
- Joined: Wed Sep 13, 2006 12:16 am
- Location: UK, Milton Keynes
- Contact:
Re: nxtcamV5 line tracing issue
Hi,
Some months ago, I implemented the support for NXTCamV5 for EV3.
You have the sources and examples here:
https://github.com/ev3dev-lang-java/lej ... are/device
https://github.com/ev3dev-lang-java/lej ... s/nxtcamv5
NXTCam comes with some scripts which server for the different modes:
But I didn`t do any depth analysis comparing both modes.
Are you thinking to you with NXT?
http://www.mindsensors.com/vision-for-r ... fixed-lens
I could review if the class require some modification for NXT if you like.
Cheers
Juan Antonio
Some months ago, I implemented the support for NXTCamV5 for EV3.
You have the sources and examples here:
https://github.com/ev3dev-lang-java/lej ... are/device
https://github.com/ev3dev-lang-java/lej ... s/nxtcamv5
NXTCam comes with some scripts which server for the different modes:
Code: Select all
public static final char OBJECT_TRACKING = 'B';
public static final char LINE_TRACKING = 'L';
But I didn`t do any depth analysis comparing both modes.
Are you thinking to you with NXT?
http://www.mindsensors.com/vision-for-r ... fixed-lens
I could review if the class require some modification for NXT if you like.
Cheers
Juan Antonio
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots
-
- New User
- Posts: 18
- Joined: Thu Jan 11, 2018 11:35 am
Re: nxtcamV5 line tracing issue
The above examples are used with due care.
The product is the same as the link and is connected to the EV3.
I want to move along the line, but it is difficult to move to the line.
What is the maximum horizontal and vertical area of nxtcamv5?
Is there an example of implementing line tracing with nxtcamv5?
The product is the same as the link and is connected to the EV3.
I want to move along the line, but it is difficult to move to the line.
What is the maximum horizontal and vertical area of nxtcamv5?
Is there an example of implementing line tracing with nxtcamv5?
Who is online
Users browsing this forum: No registered users and 1 guest